summaryrefslogtreecommitdiff
path: root/gerbonara/gerber/cam.py
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2021-12-30 12:57:53 +0100
committerjaseg <git@jaseg.de>2021-12-30 12:57:53 +0100
commite4941dd5e371e8c9e729a72b8ec30d021bceb0cc (patch)
treeb72b86303ae54624d9f677ab797459a0a2c8ba1b /gerbonara/gerber/cam.py
parentcf4957aee491d225b78993edacb0c4e21fcc20eb (diff)
downloadgerbonara-e4941dd5e371e8c9e729a72b8ec30d021bceb0cc.tar.gz
gerbonara-e4941dd5e371e8c9e729a72b8ec30d021bceb0cc.tar.bz2
gerbonara-e4941dd5e371e8c9e729a72b8ec30d021bceb0cc.zip
Fix more bugs, refined round-trip tests pass now
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 2917fc5..d00194b 100644
--- a/gerbonara/gerber/cam.py
+++ b/gerbonara/gerber/cam.py
@@ -78,6 +78,7 @@ class FileSettings:
value = value.lstrip('+-')
if self.zeros == 'leading':
+ value = '0'*decimal_digits + value # pad with zeros to ensure we have enough decimals
return float(sign + value[:-decimal_digits] + '.' + value[-decimal_digits:])
else: # no or trailing zero suppression