Marius Vollmer writes: > > That's what I think, too. * numbers.c (scm_max, scm_min): For inum, bignum and real, if other operand is NaN, then return NaN. Also avoid passing NaN to mpz_cmp_d. * tests/numbers.test (max, min): Add tests involving NaNs. Some cases just need the sense of the > or < test put the right way to allow for it being false when involving a NaN. A couple are right already. For bignums and for real/real an actual isnan is necessary.