Please enable JavaScript.
Coggle requires JavaScript to display documents.
Number - Coggle Diagram
Number
Rounding
-
-
-
-
toFixed
Rounding with specific digit after decimal point, nearest
Imprecise calculations
The funny thing
There are 64 bits for the number, 52 of them can be used to store digits, but that’s not enough. So the least significant digits disappear.
-
-
Two zeroes
-
sign is represented by a single bit, so it can be set or not set for any number including a zero.
-
parseInt and parseFloat
-
-
-
The second argument of parseInt(str, radix)
-
-
isFinite and isNaN
-
isNaN
NaN represents an error
-
NaN is unique in that it does not equal anything, including itself
-
-
-
-