diff options
author | Paulo Henrique Silva <ph.silva@gmail.com> | 2019-11-25 23:43:04 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-25 23:43:04 -0300 |
commit | d5d618f0580bb4869463010493af0831bfb9e3d1 (patch) | |
tree | ee1a69c881d199f6b57b0a3b792cf9c34b7210c2 /gerber/utils.py | |
parent | 0c862895651a1d5b7f13e42a1af94fd4418b0400 (diff) | |
parent | cee1fcff3ac8c15e8888dd0d4738c3c7f1db196d (diff) | |
download | gerbonara-d5d618f0580bb4869463010493af0831bfb9e3d1.tar.gz gerbonara-d5d618f0580bb4869463010493af0831bfb9e3d1.tar.bz2 gerbonara-d5d618f0580bb4869463010493af0831bfb9e3d1.zip |
Merge branch 'master' into multilayer
Diffstat (limited to 'gerber/utils.py')
-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 |