chamnit/preGrbl — Issue #1: fout_conv
Author: mike-holmes
Created: 2012-03-08 13:15:12+00:00
State: open

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

``` python
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?