Just rearranging comments a bit.
Fixes some locale issues regarding decimal formatting. .format() was being used without a specific Locale, which would make output gcode invalid in non-US locales.