summaryrefslogtreecommitdiff
path: root/gerber/utils.py
diff options
context:
space:
mode:
authorPaulo Henrique Silva <ph.silva@gmail.com>2019-11-25 23:46:31 -0300
committerGitHub <noreply@github.com>2019-11-25 23:46:31 -0300
commit25b82c988578482fbb57f80d3d30bdf985a9a885 (patch)
tree2a6f89a2e0278072b2a69733820a78e1ba017797 /gerber/utils.py
parent9cc42d9b7752603ae409e7c95a8cb5bec4d7b5b2 (diff)
parentcee1fcff3ac8c15e8888dd0d4738c3c7f1db196d (diff)
downloadgerbonara-25b82c988578482fbb57f80d3d30bdf985a9a885.tar.gz
gerbonara-25b82c988578482fbb57f80d3d30bdf985a9a885.tar.bz2
gerbonara-25b82c988578482fbb57f80d3d30bdf985a9a885.zip
Merge branch 'master' into script
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