Re: [jexl] Problem with division of integer values and narrowing of BigDecimal to Integer

2023-11-28 Thread Henri Biestro
Hi Robert; It took me a while to realize it but this behavior is indeed a bug; if user input is a BigDecimal, JEXL should not try and coerce with precision loss. Created JEXL-417. Sorry about the delay. Cheers Henri - To unsubsc

Re: [jexl] Problem with division of integer values and narrowing of BigDecimal to Integer

2023-11-08 Thread Henri Biestro
Hi Robert; There is no configuration that can help but you can certainly customize and create your own derivation of JexlArithmetic that would forego trying to narrow results for the common arithmetic operators. In your case, it might be enough to just override narrowBigInteger(...bigi) to retur

[jexl] Problem with division of integer values and narrowing of BigDecimal to Integer

2023-11-01 Thread Robert Lucas
Hi, We've run into an issue with using JEXL due to a combination of integer division on integer values and narrowing of BigDecimals to Integer. Not sure if this type of problem has come up before. This forum only seems to have 4 jexl issues and the Jira didn't have anything similar either. We