Y
Hacker News
new
|
ask
|
show
|
jobs
by
bcherny
3279 days ago
That's a fair point. Which language do you think does it better, or is there a library you like to use (eg. Haskell's scientific type)?
1 comments
ridiculous_fish
3279 days ago
Floating point tends to break all sorts of assumptions. For languages without static types, bignum integers and distinct operators for truncating vs FP division is probably best. This is how Python 3 works, plus Haskell and SML (with static types).
link