[OpenSCAD] Negative Zero (-0)

doug moen doug at moens.org
Tue Jun 7 19:06:22 EDT 2016


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 at 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 at lists.openscad.org
> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscad.org/pipermail/discuss_lists.openscad.org/attachments/20160607/19cf408c/attachment-0002.html>


More information about the Discuss mailing list