Re: [heycam/webidl] Clarify that unrestricted doubles and floats include NaNs. (#393)

domenic commented on this pull request.



> @@ -5144,7 +5144,7 @@ The [=type name=] of the
 
 The {{unrestricted float}} type is a floating point numeric
 type that corresponds to the set of all possible single-precision 32 bit
-IEEE 754 floating point numbers, finite and non-finite.  [[!IEEE-754]]
+IEEE 754 floating point numbers, finite, non-finite, and special "not a number" values (NaNs). [[!IEEE-754]]

This has been a point of contention in TC39 for a while, as browsers don't follow the part of the spec that says they should be indistinguishable, so we are trying to update the spec. For example, the following code returns two distinct NaNs in Firefox: https://jsbin.com/noface/edit?html,console

-- 
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/393#discussion_r130636724

Received on Tuesday, 1 August 2017 15:14:38 UTC