|
From: | Paul Eggert |
Subject: | Re: bignum branch |
Date: | Fri, 3 Aug 2018 18:22:10 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 |
Tom Tromey wrote:
Paul> min and max propagate any NaNs they find. This part I don't understand, since my mental mode of min/max is that they are iteratively applying < or >
The goal is more to have useful max and min functions than to have a particular implementation tactic. Returning a NaN is more useful, since it warns the caller that the min or max expression doesn't have a reasonable numeric interpretation.
[Prev in Thread] | Current Thread | [Next in Thread] |