Remix.run Logo
pklausler 2 days ago

In practice, though, I can't recall any HPC codes that want to use IEEE-754 infinities as valid data.

afiori 2 days ago | parent [-]

A significant chunk of floating point bitspace is dedicated to NaNs to represent explicitly invalid data (mostly I suppose to reduce the need for branches and tests in HPC) and NaNs even break the reflexivity of equality in many languages compared to them negative 0 and positive/negative infinity are perfectly valid