Jean-Luc Lachance <jllachan(at)nsd(dot)ca> writes:> If a compare with NaN is always false, how about rewriting it as:> result = ((arg1 < arg2) ? arg2 : arg1).
That just changes the failure mode.
regards, tom lane