Re: [heycam/webidl] Carry out math operations on real numbers, not IEEE 754. (#316)

domenic commented on this pull request.



> @@ -6789,7 +6798,8 @@ may return any value, which will be discarded.
     1.  Otherwise:
         1.  Let |lowerBound| be -2<sup>|bitLength| − 1</sup>.
         1.  Let |upperBound| be 2<sup>|bitLength| − 1</sup> − 1.
-    1.  Set |x| to [=?=] [=ToNumber=](|V|).
+    1.  Let |x| be [=?=] [=ToNumber=](|V|).
+    1.  If |x| is −0 or |x| is +0, then set |x| to 0.

For JavaScript Numbers, it is. I'm not sure whether |x| is a JavaScript Number or a mathematical number at this point... I assume since it's the result of ToNumber it's a JavaScript Number.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/pull/316#discussion_r102529447

Received on Wednesday, 22 February 2017 17:59:49 UTC