[OpenSCAD] Any thoughts on using units other than millimeters?

Frank van der Hulst drifter.frank at gmail.com
Mon May 20 14:43:59 EDT 2019


> OpenSCAD gets a bit flaky down in such small number scales, with floating
> point conversion losing accuracy.
>

Double precision (64-bit) floating point has 53 bits (about 16 decimal
digits) in the significand, and loses accuracy when adding a small number
to a large number (or subtracting). However, this loss of accuracy is
essentially independent of the absolute size of the number, at least until
you get down to 10^-292 or so. So, unless you're doing astronomy or
microscopy, multiplying or dividing all numbers by 25.4 won't have any
noticeable effect on accuracy.

Frank
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscad.org/pipermail/discuss_lists.openscad.org/attachments/20190521/052b41f8/attachment.html>


More information about the Discuss mailing list