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

tobie 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.

I was unsure whether +0 was considered the same as 0, or not.

Was expecting for this to be raised here. 

-- 
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_r102529111

Received on Wednesday, 22 February 2017 17:58:28 UTC