Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Sharlin
on Jan 5, 2019
|
parent
|
context
|
favorite
| on:
9999999999999999.0 – 9999999999999998.0
FWIW, a fixed-precision floating-point decimal type would have the same problem. At some point the spacing between two consecutive floating-point values (
ULP
[1]) simply becomes more than one, no matter the radix.
[1]
https://en.wikipedia.org/wiki/Unit_in_the_last_place
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
[1] https://en.wikipedia.org/wiki/Unit_in_the_last_place