We are getting the following exception below on some of the operations that have Double with a precision to the 11th decimal place or greater, e.g. Example 1. However, in Example 2, that level of precision is only 3 decimal places and the value is well within the range of a Double. We're somewhat confused as to Example 1's IllegalArguementException (possibly the level of precision), but certainly Example #2.
Any help would be greatly appreciated.
Note: Please disregard the division by a String at the end of the equation, I overrode the Division.div(Object param1, Object param2) method to check params and throw a custom error when it's encountered.
Example 1:
==> JEP Exception: Expression {(406041.223+52380.676+18306.479+33280.723+33906.178+35507.0000000001+0.0)/"No"} caused
Exception.toString() {com.singularsys.jep.functions.IllegalParameterException: /: lllegal parameter 579422.2790000001(Double) parameter no 1}
com.singularsys.jep.functions.IllegalParameterException: /: lllegal parameter 579422.2790000001(Double) parameter no 1
Example 2:
Exception.toString() {com.singularsys.jep.functions.IllegalParameterException: /: lllegal parameter 603731.485(Double) parameter no 1}
Thanks,
Larry