It would be great if BigDecimal were used instead of double, it would solve the famous 0.1 + 0.2 = 0.300...004 issue.
new DoubleEvaluator().evaluate("0.1 + 0.2");
Yes, this would solve that issue ... and adds some issues on trigonometric functions (for example). Another way to solve the issue is to round the result.
Javaluator allows you to implement your own evaluators in a few lines of code, depending on what you exactly need. Examples are provided in the tutorial:
You seem to have CSS turned off.
Please don't fill out this field.
Sign up for the SourceForge newsletter: