• 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
Name
Last commit
Last update
Tests Loading commit data...
debian Loading commit data...
doc Loading commit data...
man Loading commit data...
pycam Loading commit data...
pyinstaller Loading commit data...
samples Loading commit data...
scripts Loading commit data...
share Loading commit data...
.gitignore Loading commit data...
COPYING.TXT Loading commit data...
Changelog Loading commit data...
INSTALL.TXT Loading commit data...
LICENSE.TXT Loading commit data...
MANIFEST.in Loading commit data...
Makefile Loading commit data...
README.TXT Loading commit data...
pylint.sh Loading commit data...
release_info.txt Loading commit data...
setup.cfg Loading commit data...
setup.py Loading commit data...
technical_details.txt Loading commit data...