This is the mail archive of the kawa@sources.redhat.com 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]

Re: bug: remainder may return negative values


brlewis@alum.mit.edu writes:

> #|kawa:1|# (remainder 14853098170650239300 4000000000)
> -1644727996

I just checked in a fix for this (as well as the test case).


> #|kawa:2|# (invoke 14853098166355272004 'longValue)
> -3593645907354279612

I believe this is the correct result - at least it is the same as
produced by:
(invoke (make <java.math.BigInteger> "14853098166355272004") 'longValue)
-- 
	--Per Bothner
per@bothner.com   http://www.bothner.com/~per/

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