Floats Don't Agree with Themselves
https://docs.merca.earth/blog/floats-dont-agree-with-themselves
#HackerNews #floats #programming #precision #coding #algorithms #tech #news
Floats Don't Agree With Themselves | merca.earth
Same code, same input, different answer. A polygon-overlap test passed locally and failed on the server because LLVM folded a multiply-add into FMA on x86 and not on WASM. Here's a 2D geometry library that uses no floats — i64 coordinates, i128 cross products, bit-exact across architectures.