summaryrefslogtreecommitdiff
path: root/gerber/utils.py
diff options
context:
space:
mode:
authorPaulo Henrique Silva <ph.silva@gmail.com>2019-11-25 23:35:43 -0300
committerGitHub <noreply@github.com>2019-11-25 23:35:43 -0300
commit7125380c1ad7bdc09646c538928a48c9f559b505 (patch)
tree250b6e40166f553a1123ab7ac2e866e5080ac64e /gerber/utils.py
parent37dfd86368d080534eeefec9f726cae9e5f03e7e (diff)
parenta40de7b827d308c0dd20dd77d948afb316cfc551 (diff)
downloadgerbonara-7125380c1ad7bdc09646c538928a48c9f559b505.tar.gz
gerbonara-7125380c1ad7bdc09646c538928a48c9f559b505.tar.bz2
gerbonara-7125380c1ad7bdc09646c538928a48c9f559b505.zip
Merge branch 'master' into outline
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