This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
Re: bug: remainder may return negative values
- To: brlewis at alum dot mit dot edu
- Subject: Re: bug: remainder may return negative values
- From: Per Bothner <per at bothner dot com>
- Date: 21 Sep 2000 12:57:41 -0700
- Cc: kawa at sourceware dot cygnus dot com
- References: <E13Zefu-00072l-00@softdev>
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/