News for hackers. Stuff that matters.
Re:Lies My Calculator and Computer Told Me [pdf] by repiret on Tuesday September 19, 2023 @09:37AM (#37569768)
In what way do they behave like ranges?

I generally prefer to think of them as they are: able to represent a subset of the rationals, plus a couple other weird values, but not a field, and importantly, not obeying any of the usual algebraic laws with arithmetic.

Re:Lies My Calculator and Computer Told Me [pdf] by lmm on Tuesday September 19, 2023 @06:45PM (#37578081)
Yep. Floating point addition is not even associative, so they're not only not a field, but not a ring, not a group, nor even a monoid.