3 ms·
Now that you mention it — V8 has an interesting bug with excessive Number#toString() decimal digits (http://code.google.com/p/v8/issues/detail?id=1627 http://co
by mathias 14y ago
Now that you mention it — V8 has an interesting bug with excessive Number#toString() decimal digits (http://code.google.com/p/v8/issues/detail?id=1627 http://code.google.com/p/v8/issues/detail?id=1627).
For example:
(1.1536999999997645e-10).toString(33).match(/[a-z]+/g)[81]; // 'oops'
More here: https://gist.github.com/1153826 https://gist.github.com/1153826
- dherman 14y agoFunky! Luckily that bug doesn't interfere with this trick, since it's only relying on pretty-printing integers. Dave