summaryrefslogtreecommitdiff
path: root/gerberex/am_expression.py
diff options
context:
space:
mode:
Diffstat (limited to 'gerberex/am_expression.py')
-rw-r--r--gerberex/am_expression.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/gerberex/am_expression.py b/gerberex/am_expression.py
index 7aa95c8..b758df1 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 str(self._value)
+ return '%.6g' % self._value
def to_instructions(self):
return [(OpCode.PUSH, self._value)]
@@ -179,5 +179,3 @@ def eval_macro(instructions):
elif opcode == OpCode.PRIM:
yield (argument, stack)
stack = []
-
-