Closed sffc closed 1 year ago
The change is harmless, but not strictly required, because applying -
on any mathematical value still returns a mathematical value, even for zero.
The change is harmless, but not strictly required, because applying
-
on any mathematical value still returns a mathematical value, even for zero.
The problem is if x
was originally -0
when passed to FormatNumericToString
, it would be set to 0
in step 1b, then back to -0
in step 4a. This breaks the AOs it is then passed into which assume x
is positive, and also makes step 14 (which flips the sign again) set x
to positive 0
.
There's no distinct -0
value for mathematical values, i.e. -0
is exactly equal to +0
.
Fixes #127