[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Scheme-reports] Numerical example (real? -2.5+0.0i)
| From: Jussi Piitulainen <jpiitula@x>
| 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
_______________________________________________
Scheme-reports mailing list
Scheme-reports@x
http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports