Yup. Use >> 0! “@rauschma: > parseInt(0.0000008, 10)
8
Why?
> String(0.0000008)
'8e-7'
Thus: don’t use it to convert numbers to integers.”
Replying to @mapagella
@mapagella That only works for 32-bit floats, though. +@rauschma @kuvos
6:08 AM - 12 Dec 2013
from Dendermonde, België
0 replies
0 retweets
1 like
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.