Re:NaN does not equal NaN
by ajross on Tuesday September 27, 2011 @06:34PM
(#3045549)
Actually no. Just in case you were confused by cdavid's sample code: the concise explanation is that division by zero in IEEE floating point produces an infinity (there are two: positive and negative), not a NaN. Neither is necessarily an "error" in the sense of a runtime exception (the generation of which is programmable).
[ Parent
| on HN ]
There are no comments on this comment yet.