mirror of
https://github.com/flynx/Course-JavaScript.git
synced 2025-11-01 04:20:10 +00:00
Compare commits
No commits in common. "36b4f1f700f99380b1a46f4259a93a98ec977a07" and "9e239f7776c782ed842be109bb9f477207b70383" have entirely different histories.
36b4f1f700
...
9e239f7776
@ -68,11 +68,10 @@
|
|||||||
|
|
||||||
// Numbers also have several limitations:
|
// Numbers also have several limitations:
|
||||||
//
|
//
|
||||||
// - precision, rounding errors and fractions
|
// - precision, rounding errors and fractions (IEEE-754)
|
||||||
0.1 + 0.2 == 0.3 // -> false
|
0.1 + 0.2 == 0.3 // -> false
|
||||||
|
|
||||||
// This is due to how floating point numbets ate traditionally
|
// XXX
|
||||||
// implemented on CPUs, see: IEEE-754
|
|
||||||
|
|
||||||
// - large number rounding
|
// - large number rounding
|
||||||
Number.MAX_SAFE_INTEGER + 10 - 10 == Number.MAX_SAFE_INTEGER
|
Number.MAX_SAFE_INTEGER + 10 - 10 == Number.MAX_SAFE_INTEGER
|
||||||
@ -191,7 +190,7 @@
|
|||||||
|
|
||||||
[42] instanceof Array // -> true
|
[42] instanceof Array // -> true
|
||||||
|
|
||||||
// but since all objects are objects the test can get quite generic
|
// but since all objects are objects the test can get quite generic (XXX)
|
||||||
|
|
||||||
[42] instanceof Object // -> true
|
[42] instanceof Object // -> true
|
||||||
{} instanceof Object // -> true
|
{} instanceof Object // -> true
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user