diff options
author | Paulo Henrique Silva <ph.silva@gmail.com> | 2019-11-25 23:35:43 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-25 23:35:43 -0300 |
commit | 7125380c1ad7bdc09646c538928a48c9f559b505 (patch) | |
tree | 250b6e40166f553a1123ab7ac2e866e5080ac64e /gerber/utils.py | |
parent | 37dfd86368d080534eeefec9f726cae9e5f03e7e (diff) | |
parent | a40de7b827d308c0dd20dd77d948afb316cfc551 (diff) | |
download | gerbonara-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.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 |