Aren't floating point comparisons frowned upon?
https://github.com/google/pebble/blob/main/src/libc/math/flo...
I guess you can freeze some compiler options to give you consistent results.
I guess you can freeze some compiler options to give you consistent results.
I've once optimized a function to be faster, and in a unit test asserted that the old slower version gives exactly the same floating point answer as the new optimized version. It's doable in some cases.