News for hackers. Stuff that matters.
Re:In Erlang/OTP 27, +0.0 will no longer be exactly equal to... by sterlind on Tuesday May 09, 2023 @04:52PM (#35880223)
I'm assuming you mean equality comparison, rather than comparison in general!

but is there a better algebraic structure to use when thinking of floats? like, in terms of limits, or something that tracks significant digits and uncertainty? how do formal methods handle these?

Re:In Erlang/OTP 27, +0.0 will no longer be exactly equal to... by Y_Y on Tuesday May 09, 2023 @05:29PM (#35880626)
There's more than one way to skin that cat, but interval arithmetic is a good and simple model. You can take the part of the real line which maps to the single float you are thinking about, and then look at the image of that set under the whatever functions you are thinking about.