Y
Hacker News
new
|
ask
|
show
|
jobs
by
01HNNWZ0MV43FF
382 days ago
Lua is telling me 0.1 + 0.1 == 0.2, but 0.1 + 0.2 != 0.3. That's 64-bit precision. The issue is not with precision, but with 1/10th being a repeating decimal in binary.
1 comments
anthk
382 days ago
Not an issue on Scheme and Common Lisp and even Forth operating directly with rationals with custom words.
link