3 ms·
Ah, right, thanks for the reminder, it always trips me up that overflow can round to infinity even in the mode that is called "round to nearest".
by hvdijk 5y ago
Ah, right, thanks for the reminder, it always trips me up that overflow can round to infinity even in the mode that is called "round to nearest".
- nightcracker 5y agoMaybe `inf` and `1/inf` are bad names for the concept the value represents. Perhaps 'overflow' and 'underflow' are better - they are error conditions that propagate (when they would affect the result, e.g. `x + underflow` would have been `x` anyway, thus it is not propagated), so you can diagnose when your computation has suffered from irrecoverable precision loss.