summaryrefslogtreecommitdiff
path: root/gerber/utils.py
diff options
context:
space:
mode:
authorPaulo Henrique Silva <ph.silva@gmail.com>2019-11-25 23:43:04 -0300
committerGitHub <noreply@github.com>2019-11-25 23:43:04 -0300
commitd5d618f0580bb4869463010493af0831bfb9e3d1 (patch)
treeee1a69c881d199f6b57b0a3b792cf9c34b7210c2 /gerber/utils.py
parent0c862895651a1d5b7f13e42a1af94fd4418b0400 (diff)
parentcee1fcff3ac8c15e8888dd0d4738c3c7f1db196d (diff)
downloadgerbonara-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.py4
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