discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

strange result printing floating point number

A
adrianv
Sat, Jul 11, 2020 12:57 PM

x = -2.2673063426737e-10;
echo(x=x);

Result of this code:

ECHO: x = -2.26731e-1

--
Sent from: http://forum.openscad.org/

x = -2.2673063426737e-10; echo(x=x); Result of this code: ECHO: x = -2.26731e-1 -- Sent from: http://forum.openscad.org/
TP
Torsten Paul
Sat, Jul 11, 2020 1:05 PM

It's a bug.

It's fixed in the snapshot version.

ciao,
Torsten.

It's a bug. It's fixed in the snapshot version. ciao, Torsten.