discu
Newsletters
Mentions
Extension
Pricing
Login
Sign Up
Hacker News
Testing for -0 (negative zero) in JavaScript
http://www.wirfs-brock.com/allen/posts/128
10 comments
17/2/2011
Reddit
Testing for -0 in JavaScript -> function isNegativeZero(x) {return x === 0 && 1/x < 0;}
http://www.wirfs-brock.com/allen/posts/128
18 comments
23/2/2011
programming