summaryrefslogtreecommitdiff
path: root/gerber/utils.py
diff options
context:
space:
mode:
authorPaulo Henrique Silva <ph.silva@gmail.com>2019-11-25 15:45:47 -0300
committerGitHub <noreply@github.com>2019-11-25 15:45:47 -0300
commit0a45f0ae5770f5975d0f1c85d38cc737a00cc4d1 (patch)
tree4cc45b51f961285ac43ba429a174778f39bd86cc /gerber/utils.py
parentc87bad8dedc0ea2a52171840d24451e2117c8325 (diff)
parent2830fd268dbcdc52fdf67221a00e3a72cb4e9cb9 (diff)
downloadgerbonara-0a45f0ae5770f5975d0f1c85d38cc737a00cc4d1.tar.gz
gerbonara-0a45f0ae5770f5975d0f1c85d38cc737a00cc4d1.tar.bz2
gerbonara-0a45f0ae5770f5975d0f1c85d38cc737a00cc4d1.zip
Merge branch 'master' into patch-1
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