discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Negative Zero (-0)

W
william
Wed, Jun 1, 2016 11:31 AM

I know it is perhaps a bit pedantic but I report it anyway just to see if it
is just an issue with my understanding.

I tried to produce the -0 result as described in the documentation.  My
attempt was:

http://forum.openscad.org/file/n17502/20160601_19.jpg

Should the last two echo results be "-0" instead of "0".

William

--
View this message in context: http://forum.openscad.org/Negative-Zero-0-tp17502.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

I know it is perhaps a bit pedantic but I report it anyway just to see if it is just an issue with my understanding. I tried to produce the -0 result as described in the documentation. My attempt was: <http://forum.openscad.org/file/n17502/20160601_19.jpg> Should the last two echo results be "-0" instead of "0". William -- View this message in context: http://forum.openscad.org/Negative-Zero-0-tp17502.html Sent from the OpenSCAD mailing list archive at Nabble.com.
DM
doug moen
Tue, Jun 7, 2016 11:06 PM

Yes, I consider this a bug.

echo( 1 / (-0) ); // -inf
echo ( 1 / 0 ); // inf

Yup, negative zero exists and produces different results than positive zero.

echo ( -0 ); // 0

That's a bug, -0 should print as -0.

On 1 June 2016 at 07:31, william whareg12@yahoo.com wrote:

I know it is perhaps a bit pedantic but I report it anyway just to see if
it
is just an issue with my understanding.

I tried to produce the -0 result as described in the documentation.  My
attempt was:

http://forum.openscad.org/file/n17502/20160601_19.jpg

Should the last two echo results be "-0" instead of "0".

William

--
View this message in context:
http://forum.openscad.org/Negative-Zero-0-tp17502.html
Sent from the OpenSCAD mailing list archive at Nabble.com.


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

Yes, I consider this a bug. echo( 1 / (-0) ); // -inf echo ( 1 / 0 ); // inf Yup, negative zero exists and produces different results than positive zero. echo ( -0 ); // 0 That's a bug, -0 should print as -0. On 1 June 2016 at 07:31, william <whareg12@yahoo.com> wrote: > I know it is perhaps a bit pedantic but I report it anyway just to see if > it > is just an issue with my understanding. > > I tried to produce the -0 result as described in the documentation. My > attempt was: > > <http://forum.openscad.org/file/n17502/20160601_19.jpg> > > Should the last two echo results be "-0" instead of "0". > > William > > > > -- > View this message in context: > http://forum.openscad.org/Negative-Zero-0-tp17502.html > Sent from the OpenSCAD mailing list archive at Nabble.com. > > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org > > >