aboutsummaryrefslogtreecommitdiff
path: root/gerberex
diff options
context:
space:
mode:
Diffstat (limited to 'gerberex')
-rw-r--r--gerberex/am_expression.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/gerberex/am_expression.py b/gerberex/am_expression.py
index 5400130..f43ba2e 100644
--- a/gerberex/am_expression.py
+++ b/gerberex/am_expression.py
@@ -49,6 +49,8 @@ class AMConstantExpression(AMExpression):
return self
def to_gerber(self, settings=None):
+ if isinstance(self._value, str):
+ return self._value
gerber = '%.6g' % self._value
return '%.6f' % self._value if 'e' in gerber else gerber