diff options
author | Marin Mikaƫl <41113988+MarinMikael@users.noreply.github.com> | 2019-07-24 01:24:41 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-24 01:24:41 +0900 |
commit | 0854d357587c96adb881255d0af6a7d40c15153c (patch) | |
tree | 53a570f0e13cf10366528b42952eb04e2fea5c90 /gerberex/am_expression.py | |
parent | 415bdbc2e4339d370afcd779344ea66e39ba6b0a (diff) | |
download | gerbonara-0854d357587c96adb881255d0af6a7d40c15153c.tar.gz gerbonara-0854d357587c96adb881255d0af6a7d40c15153c.tar.bz2 gerbonara-0854d357587c96adb881255d0af6a7d40c15153c.zip |
Update am_expression.py
String format to %f instead of %g. Scientific notation is supportd by Kicad and Ucamco's reference viewer, but causes artefacts on Altium and pcb-tools.
Diffstat (limited to 'gerberex/am_expression.py')
-rw-r--r-- | gerberex/am_expression.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gerberex/am_expression.py b/gerberex/am_expression.py index b758df1..4bb1d78 100644 --- a/gerberex/am_expression.py +++ b/gerberex/am_expression.py @@ -49,7 +49,7 @@ class AMConstantExpression(AMExpression): return self def to_gerber(self, settings=None): - return '%.6g' % self._value + return '%.6f' % self._value def to_instructions(self): return [(OpCode.PUSH, self._value)] |