Add to weirdness

In javascript there error about calculation on decimal numbers. I  was add one of them.
pull/162/head
Ata Özdamar 3 years ago committed by GitHub
parent 54711a04cf
commit 467332fffa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -4,6 +4,9 @@
// Null is an Object
typeof null // => 'object'
// Weird decimal calculation
0.1 + 0.2 // -> 0.30000000000000004
// Despite this, null is not an instance of an Object
null instanceof Object // => false

Loading…
Cancel
Save