summaryrefslogtreecommitdiff
path: root/gerbonara/gerber/cam.py
diff options
context:
space:
mode:
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):