Roger Andrews wrote:
JavaScript already handles -0 well in mathematical functions (but not
in strings!):
Strings? Don't use non-e.r. operators (==, !=) or relationals with
mixed-type operands. That's just off the Math map.
Math.sin(-0) == -0
Strangely IEEE defines and JavaScript conforms:
Math.sqrt(-0) == -0
Yes, Guy Steele helped us sort this out in ES1 days. Math.atan2(+/-0,
+/-0) also has the right sign for the {+/-0, +/-Math.PI} results.
/be
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss