discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Floating point error in echo (version 2019.05)

H
herdima
Thu, Feb 25, 2021 12:19 PM

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: http://forum.openscad.org/

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: http://forum.openscad.org/
AD
Ari Diacou
Thu, Feb 25, 2021 1:36 PM

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 martin.Herdieckerhoff@mnet-mail.de
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 http://forum.openscad.org/
at Nabble.com.


OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

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 <martin.Herdieckerhoff@mnet-mail.de> 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 <http://forum.openscad.org/> > at Nabble.com. > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >
RP
Ronaldo Persiano
Thu, Feb 25, 2021 2:39 PM

See the thread: http://forum.openscad.org/echo-error-tp30338.html
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 <
martin.Herdieckerhoff@mnet-mail.de> 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 http://forum.openscad.org/
at Nabble.com.


OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

See the thread: http://forum.openscad.org/echo-error-tp30338.html 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 < martin.Herdieckerhoff@mnet-mail.de> 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 <http://forum.openscad.org/> > at Nabble.com. > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >
RW
Ray West
Thu, Feb 25, 2021 3:33 PM

It's fixed for me in vers 2021.01-RC5

On 25/02/2021 14:39, Ronaldo Persiano wrote:

See the thread: http://forum.openscad.org/echo-error-tp30338.html
http://forum.openscad.org/echo-error-tp30338.html
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
<martin.Herdieckerhoff@mnet-mail.de
mailto:martin.Herdieckerhoff@mnet-mail.de> 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
 <http://forum.openscad.org/> at Nabble.com.
 _______________________________________________
 OpenSCAD mailing list
 Discuss@lists.openscad.org <mailto:Discuss@lists.openscad.org>
 http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
 <http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org>

OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

It's fixed for me in vers 2021.01-RC5 On 25/02/2021 14:39, Ronaldo Persiano wrote: > See the thread: http://forum.openscad.org/echo-error-tp30338.html > <http://forum.openscad.org/echo-error-tp30338.html> > 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 > <martin.Herdieckerhoff@mnet-mail.de > <mailto:martin.Herdieckerhoff@mnet-mail.de>> 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 > <http://forum.openscad.org/> at Nabble.com. > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org <mailto:Discuss@lists.openscad.org> > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org > <http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org> > > > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org