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