Re:Shipping Culture Is Hurting Us
by jks on Tuesday February 17, 2015 @02:48AM
(#9061093)
According to http://stackoverflow.com/a/1573715 the IEEE-754 committee decided to make NaN != NaN in order for programmers to have a simple way of detecting NaN before there was a standardized isnan function or macro.
[ Parent
| on HN ]
Re:Shipping Culture Is Hurting Us
by chrisdevereux on Tuesday February 17, 2015 @03:18PM
(#9064688)
I'm lacking sleep a bit here, but wouldn't NaN == NaN do the same trick?