Earlier quoted context omitted.
> The result of any operation on a NaN is a NaN. That's not true! maxNum(nan, x) = x.
The standard for comparison with NaNs is to always return false [0]. So that entirely depends on how max() is implemented. A naive implementation of max() might just as easily instead return NaN for that. Or if max(NaN, x) is x, then it may give NaN for max(x, NaN). Note that the fact that comparisons always return false also means that sorting an array of floating point values that contain NaNs can very easily break…
maximumMagnitude (and a few similar ones) replace it but behave similarly.