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).
[ Parent
| on HN ]
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()
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.