summaryrefslogtreecommitdiff
path: root/gerbonara/gerber/cam.py
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2022-01-29 21:19:11 +0100
committerjaseg <git@jaseg.de>2022-01-29 21:19:26 +0100
commit6edc1bf6069f489fcc4ae11bc0523d8bfc31cfd8 (patch)
tree52c4c019ed5e37199f5efbafc17c4a096d5bbb32 /gerbonara/gerber/cam.py
parent1d0336056f2b29a95148768bfc5e805afad27cba (diff)
downloadgerbonara-6edc1bf6069f489fcc4ae11bc0523d8bfc31cfd8.tar.gz
gerbonara-6edc1bf6069f489fcc4ae11bc0523d8bfc31cfd8.tar.bz2
gerbonara-6edc1bf6069f489fcc4ae11bc0523d8bfc31cfd8.zip
Fix zero suppression handling and remove more old files
Diffstat (limited to 'gerbonara/gerber/cam.py')
-rw-r--r--gerbonara/gerber/cam.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/gerbonara/gerber/cam.py b/gerbonara/gerber/cam.py
index 51612f4..6c6a7dc 100644
--- a/gerbonara/gerber/cam.py
+++ b/gerbonara/gerber/cam.py
@@ -150,6 +150,7 @@ class FileSettings:
return float(sign + value[:-decimal_digits] + '.' + value[-decimal_digits:])
else: # no or trailing zero suppression
+ value = value + '0'*integer_digits
return float(sign + value[:integer_digits] + '.' + value[integer_digits:])
def write_gerber_value(self, value, unit=None):