Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Round Float Values longer then 'Decimalplaces' #76

Closed
nicolas-lang opened this issue May 13, 2013 · 1 comment
Closed

Round Float Values longer then 'Decimalplaces' #76

nicolas-lang opened this issue May 13, 2013 · 1 comment

Comments

@nicolas-lang
Copy link

I just encountered a Problem with my GRBL & Universal-G-Code-Sender - Setup:

  • my gcode had float values with 20 decimal places, resulting in lines longer then GRBL could handle, this made my Machining operation 'bad' without throwing a Error.
    It would be very helpfull if the G-Code-Sender had a Option to round the float values that are being sent to the GRBL setting of 'decimal-places' or maybe a fixed number of decimals.

I currently just use the following regex to cut exessive decimals:
match:
([xXyYzZfFiIjJ]{1})\s_([-]{0,1})\s_(\d+).(\d{0,4})\d+
replace by:
$1$2$3.$4

@winder
Copy link
Owner

winder commented Jun 19, 2013

I added this recently with commit be98878

@winder winder closed this as completed Jun 19, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants