The solution to "Error handling"...
Walter Bright
newshound2 at digitalmars.com
Sat Jul 4 21:20:04 UTC 2026
On 7/4/2026 1:01 PM, Jonathan M Davis wrote:
> And from what I've seen, much as most of us absolutely hate the
> whole mess with NaNs, the guys who actually do a lot of math with their
> programs love it.
Here's a nice explanation of why NaNs are needed:
https://pzarycki.com/en/posts/js-nan/
NaNs are your friend with computer floating point math. The whole mess would
(and did) exist before NaN was invented and standardized.
More information about the Digitalmars-d
mailing list