Floating point error in echo (version 2019.05)

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Floating point error in echo (version 2019.05)

herdima
I get this with OpenSCAD 2019.05 :

echo(1.00001e-10); // => 1.00001e-1

Many other numbers show the same bug
(e.g. 1.00002e-10, 1.00003e-10, ..., 2.00001e-10, 3.00001e-10, ... etc.).
I found no such behaviour for exponents other than -10.


Sent from the OpenSCAD mailing list archive at Nabble.com.

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: Floating point error in echo (version 2019.05)

drxenocide
I have found that two faces will be coplanar up to 0.05 - so thats what I use as my epsilon. Why do you need Angstrom resolution?

On Thu, Feb 25, 2021 at 7:20 AM herdima <[hidden email]> wrote:
I get this with OpenSCAD 2019.05 :

echo(1.00001e-10); // => 1.00001e-1

Many other numbers show the same bug
(e.g. 1.00002e-10, 1.00003e-10, ..., 2.00001e-10, 3.00001e-10, ... etc.).
I found no such behaviour for exponents other than -10.


Sent from the OpenSCAD mailing list archive at Nabble.com.
_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: Floating point error in echo (version 2019.05)

Ronaldo
In reply to this post by herdima
It seems (I have not confirmed) this echo bug has been fixed in the last releases.

Em qui., 25 de fev. de 2021 às 12:20, herdima <[hidden email]> escreveu:
I get this with OpenSCAD 2019.05 :

echo(1.00001e-10); // => 1.00001e-1

Many other numbers show the same bug
(e.g. 1.00002e-10, 1.00003e-10, ..., 2.00001e-10, 3.00001e-10, ... etc.).
I found no such behaviour for exponents other than -10.


Sent from the OpenSCAD mailing list archive at Nabble.com.
_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: Floating point error in echo (version 2019.05)

mondo

It's fixed for me in vers 2021.01-RC5 


On 25/02/2021 14:39, Ronaldo Persiano wrote:
It seems (I have not confirmed) this echo bug has been fixed in the last releases.

Em qui., 25 de fev. de 2021 às 12:20, herdima <[hidden email]> escreveu:
I get this with OpenSCAD 2019.05 :

echo(1.00001e-10); // => 1.00001e-1

Many other numbers show the same bug
(e.g. 1.00002e-10, 1.00003e-10, ..., 2.00001e-10, 3.00001e-10, ... etc.).
I found no such behaviour for exponents other than -10.


Sent from the OpenSCAD mailing list archive at Nabble.com.
_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org