I'm expecting Double.NaN - Double.NaN
to be equal to 0, but it is NOT.
Could someone explain what's going on? What are the rules of thumb when it comes to doing maths on NaN? Is it something like "if any of the sub-expr is NaN, then the whole expr is NaN"?
thanks,