[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: mpz_cmp_d and NaNs in = and <
From: |
Kevin Ryde |
Subject: |
Re: mpz_cmp_d and NaNs in = and < |
Date: |
Sat, 10 May 2003 09:16:05 +1000 |
User-agent: |
Gnus/5.090019 (Oort Gnus v0.19) Emacs/21.2 (gnu/linux) |
I wrote:
>
> * numbers.c (scm_num_eq_p, scm_less_p): Don't pass NaN to mpz_cmp_d.
> * tests/numbers.test (=, <): Add tests involving NaNs.
I applied this change. I left in the tests on complex numbers in `=';
someone smarter than me will have to advise whether it's true in fact
that they're not reached (on account of the imaginary part always
being non-zero).