archives

« Bugzilla Issues Index

#1573 — Math.trunc(-0.5) should be -0


The spec for Math.trunc(x) does not explicitly state that:

* If x is greater than 0 and less than 1, the result is +0.
* If x is greater than -1 and less than 0, the result is -0.

(I filed this because the spec is otherwise very explicit about positive and negative zeros.)


fixed in rev16 editor's draft


fixed in rev16 draft. July 15, 2013