[Scheme-reports] Numerical example (real? -2.5+0.0i) Jussi Piitulainen (15 Aug 2011 07:46 UTC)
Re: Numerical example (real? -2.5+0.0i) Aubrey Jaffer (15 Aug 2011 16:06 UTC)

Re: Numerical example (real? -2.5+0.0i) Aubrey Jaffer 15 Aug 2011 16:05 UTC

 | From: Jussi Piitulainen <jpiitula-RdzLyYx0DQZAwcLeL5HwKQ@public.gmane.org>
 | Date: 15 Aug 2011 10:45:33 +0300
 |
 | An example in July draft 6.2.5 shows (real? -2.5+0.0i) as #t. The
 | text above the examples says (real? z) if and only if (zero?
 | (imag-part z)) and (exact? (imag-part z)). The imag-part is clearly
 | not exact.

The SCM implementation does not and will not support mixed exactness
numbers:

  (real? -2.5+0.0i)		 ==> #t
  (eqv? -2.5 -2.5+0i)		 ==> #t
  (eqv? -2.5 -2.5+0.0i)		 ==> #t