Re: [heycam/webidl] Is -0 < 0, regarding [EnforceRange]? (#306)

> If lowerBound is 0 and x is -0, will this throw?

I would hope not!

> Note that -0 < 0 is false in JavaScript.

Sure.  It's false in IEEE-754 in general, I believe.  That is, `-0 < 0` is false in C/C++/Rust/etc as well, as far as I know.

But we could be pretty explicit about this, sure.



-- 
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/issues/306#issuecomment-279518571

Received on Monday, 13 February 2017 20:53:57 UTC