when it is added with number, it will be NaN
to do this, first we need to initialise it.
image 1 determine if an attribute is NaN
Note: since there is not enough significant figures to hold 1 in 1e17+,
1+ 1e300 = 1e300
1e270 + 1e308 = 1e308
1e309 = overflow
However, NaN + 1e308 = NaN, not = 1e308 or any number not Infinity either.
image 2 press the "new game button"
image 1 |
image 2 |
No comments:
Post a Comment