Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
roder
on Oct 29, 2010
|
parent
|
context
|
favorite
| on:
0.30000000000000004
Erlang likewise:
1> 0.1 + 0.3.
0.4
masklinn
on Oct 29, 2010
[–]
Nope, Erlang's floats are still IEEE754 floats:
1> 1.0e21 + 1 == 1.0e21. true
silentbicycle
on Oct 29, 2010
|
parent
[–]
Right. It has arbitrary-precision ints, but lossy floats.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
1> 0.1 + 0.3.
0.4