[Poll] What do you get if you add two negative zeroes in JavaScript?
-0 + -0
No cheating! #jsquiz
-
Show this thread
-
Replying to @mathias
In Opera, Chrome and Firefox it's -0, in Edge its +0. Of course Microsoft does it different!
3 replies 0 retweets 9 likes -
Replying to @datanonsense @mathias
Nope, it's -0 in Edge. Try 1/(-0+-0) to see the sign bit
2 replies 0 retweets 2 likes
Replying to @sephr @datanonsense
Or http://Object.is ()
4:49 PM - 24 Jan 2018
0 replies
0 retweets
2 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.