Created
August 20, 2015 23:02
-
-
Save dnasca/e9d666bea1abc837dfb2 to your computer and use it in GitHub Desktop.
Testing for negative zero.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function isNegativeZero(x) { | |
| return x === 0 && (1/x < 0); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment