Created
October 5, 2012 15:35
-
-
Save zhuzhuaicoding/3840558 to your computer and use it in GitHub Desktop.
NaN,Infinity trick
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
| 1/0 = Infinity | |
| 0/0 = NaN | |
| 1/'foo' = NaN | |
| 1/Infinity = 0 | |
| (1/Infinity)*Infinity = NaN | |
| Infinity == Infinity (true) | |
| 0/0为NaN,其他数除0为Infinite |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment