News for hackers. Stuff that matters.
Re:Code is run more than read by salmonellaeater on Friday December 01, 2023 @02:36AM (#38484172)
That doesn't seem possible with the reals. An example from programming that comes to mind is NaN ≹ NaN (in some languages).
Re:Code is run more than read by bruce343434 on Friday December 01, 2023 @03:32AM (#38484512)
The floating point specification mandates that nan does not compare to nan in any way, so it should be all languages. If you want to know nam, use isnan()
Re:Code is run more than read by jampekka on Friday December 01, 2023 @04:41AM (#38484949)
Isn't this what happens with infs (in maths and in many programming languages)?

Edit: Not in many programming languages. In IEEE-754 inf == inf. In SymPy too oo == oo, although it's a bit controversial. Feels sketchy.