Skip to content

fout_conv #1

@mike-holmes

Description

@mike-holmes

Sonny,

In an attempt to make sure I don't run into the problems we discussed (http://github.com/grbl/grbl/issues/74), I've had a go at integrating preGrbl into my python GUI (which I'll be making a repo for soon). However it doesn't seem to round the numbers, e.g. X100.00000 remains as-is.

I've played around with the 'ndigits' parameter and changed the unit_conv function to

def unit_conv(val) : # Converts value to mm
    if gc['inches_mode'] : val *= inch2mm
    return fout_conv(val) ### this line changed

but to no avail. Is there an easy modification to the code which would do the rounding?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions