News for hackers. Stuff that matters.
Re:Beware of Fast-Math by 01HNNWZ0MV43FF on Saturday May 31, 2025 @04:11PM (#44146673)
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.
Re:Beware of Fast-Math by anthk on Saturday May 31, 2025 @06:20PM (#44147332)
Not an issue on Scheme and Common Lisp and even Forth operating directly with rationals with custom words.