Henri Biestro created JEXL-417:
----------------------------------

             Summary: JexlArithmetic looses precision during arithmetic 
operator execution
                 Key: JEXL-417
                 URL: https://issues.apache.org/jira/browse/JEXL-417
             Project: Commons JEXL
          Issue Type: Bug
    Affects Versions: 3.3
            Reporter: Henri Biestro
             Fix For: 3.3.1


When a an argument/variable is a BigDecimal or BigInteger, JEXL may try and 
convert it to double/long during arithmetic operator execution leading to 
unexpected results.

(56.1B - 12) / 12 = 3.66666.... 

User intent about precision should be maintained.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to