Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
ahoge
on Dec 28, 2012
|
parent
|
context
|
favorite
| on:
Json ⊄ js
It's 2^53 (9 quadrillion).
Math.pow(2, 53) === Math.pow(2, 53) + 1 // true
Math.pow(2, 53) === Math.pow(2, 53) - 1 // false
mikeash
on Dec 28, 2012
[–]
Yep, remembered "53" but then misremembered it as the number of mantissa bits.
Consider applying for YC's Fall 2026 batch!
Applications
are open till July 27.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
Math.pow(2, 53) === Math.pow(2, 53) + 1 // true
Math.pow(2, 53) === Math.pow(2, 53) - 1 // false