• Lars Kruse's avatar
    fix issue with scientific number formats in GCode · 45749e8b
    Lars Kruse authored
    The "decimal" module can cause the output of values like "0E-12"
    with the "%s" formatting string.
    
    Test case:
       import decimal; print decimal.Decimal("0.0000001")
    => 1E-7
    
    This fix uses a "%.?f" (? = number of digits) format string based
    the number of significant digits as given via "minimum step width"
    in GCode settings.
    45749e8b
GCodeExporter.py 13.6 KB