diff options
author | don bright <hugh.m.bright@gmail.com> | 2012-07-27 01:49:58 (GMT) |
---|---|---|
committer | don bright <hugh.m.bright@gmail.com> | 2012-07-27 01:49:58 (GMT) |
commit | 4f7bf1819fca887f2712807077f9e497c262e9ed (patch) | |
tree | 7b836c2a81e0e5c429e2ee563f465951d6479532 /testdata/scad/misc/echo-tests.scad | |
parent | 67eeed386cab529da187f4d8a94573df8a6768ae (diff) |
add test for proper rounding of decimals in echo()
Diffstat (limited to 'testdata/scad/misc/echo-tests.scad')
-rw-r--r-- | testdata/scad/misc/echo-tests.scad | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/testdata/scad/misc/echo-tests.scad b/testdata/scad/misc/echo-tests.scad index c42a67e..6753c61 100644 --- a/testdata/scad/misc/echo-tests.scad +++ b/testdata/scad/misc/echo-tests.scad @@ -12,3 +12,7 @@ echo(vec = [1,2,3]); echo(range = [0:2]); echo(str("string generated by str()")); + +// https://github.com/openscad/openscad/issues/158 rept by nop head +// 0.8 should print 0.8 not 0.80000...004 (regardless of internal representation) +echo(0.8); |