This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
Re: Float syntax
* Per Bothner [2011-01-25 02:34] writes:
>> (= java.lang.Double:POSITIVE_INFINITY
>> java.lang.Float:POSITIVE_INFINITY) => #t
>> (equal? java.lang.Double:POSITIVE_INFINITY
>> java.lang.Float:POSITIVE_INFINITY) => #f
>
> I think the other ones are correct. I added them all to num-test.scm.
Shouldn't (= x y) => #t imply (equal? x y) => #t ?
At least I always assumed that equal? and eqv? use = to compare numbers.
Helmut