From 0854d357587c96adb881255d0af6a7d40c15153c Mon Sep 17 00:00:00 2001 From: Marin Mikaƫl <41113988+MarinMikael@users.noreply.github.com> Date: Wed, 24 Jul 2019 01:24:41 +0900 Subject: 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. --- gerberex/am_expression.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gerberex') 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)] -- cgit