> parseInt(0.0000008, 10) 8 Why? > String(0.0000008) '8e-7' Thus: don’t use it to convert numbers to integers.
-
-
@mathias@g_goodman@rauschma floor isn't the same as an int cast (truncation) though. floor(-1.2) is -2, not -1. I'd go with the ugly "|0".Thanks. Twitter will use this to make your timeline better. UndoUndo
-
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.