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.
This commit is contained in:
Marin Mikaël 2019-07-24 01:24:41 +09:00 committed by GitHub
parent 415bdbc2e4
commit 0854d35758
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)]