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.
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?