diff options
author | C4dmium <41113988+MarinMikael@users.noreply.github.com> | 2019-08-01 22:25:01 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-01 22:25:01 +0900 |
commit | dbd92e58c91ec9d4447749c6c9b4212b96a84e44 (patch) | |
tree | a71c7ce5725a8be3bd2ea8efddb3e7837d9da041 /gerber | |
parent | 2601ae8eab8d7be807bdbed264cd943e441a8da0 (diff) | |
download | gerbonara-dbd92e58c91ec9d4447749c6c9b4212b96a84e44.tar.gz gerbonara-dbd92e58c91ec9d4447749c6c9b4212b96a84e44.tar.bz2 gerbonara-dbd92e58c91ec9d4447749c6c9b4212b96a84e44.zip |
Update utils.py
Diffstat (limited to 'gerber')
-rw-r--r-- | gerber/utils.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gerber/utils.py b/gerber/utils.py index 817a36e..3d39df9 100644 --- a/gerber/utils.py +++ b/gerber/utils.py @@ -123,6 +123,10 @@ def write_gerber_value(value, format=(2, 5), zero_suppression='trailing'): value : string The specified value as a Gerber/Excellon-formatted string. """ + + if format[0] == float: + return "%f" %value + # Format precision integer_digits, decimal_digits = format MAX_DIGITS = integer_digits + decimal_digits |