This is the mail archive of the kawa@sourceware.org mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]