commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Narendran MC <>
Subject Re: [Jexl] Problem using BigDecimal divide and compare
Date Sat, 14 May 2011 01:33:30 GMT
Thanks Henri.

My understanding of MathContext is it allows you to specify the significant
Here is a related thread --

So if that understanding is correct, providing a comparison MathContext will
not solve the problem. Probably, a comparison scale, rounding mode,
would help.

Also curious to know about the issue that I mentioned in the equals method
in JexlArithmetic.

Thanks again.

On Thu, May 12, 2011 at 10:54 PM, henrib <> wrote:

> Howdy,
> I'll be looking into it momentarily. I'm not sure I completely see the pb
> with scaling wrt comparison since it seems a precision issue to me (set a
> precision of 2 in your case); may be a comparison MathContext would be more
> appropriate?
> If a solution is urgent, you can always subclass JexlArithmetic in your own
> project and/or additionally submit a patch.
> Cheers
> --
> View this message in context:
> Sent from the Commons - User mailing list archive at
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message