It would be great if BigDecimal were used instead of double, it would solve the famous 0.1 + 0.2 = 0.300...004 issue.
Currently, new DoubleEvaluator().evaluate("0.1 + 0.2"); returns 0.30000000000000004
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: http://javaluator.soft.fathzer.com/en/doc/tutorial.php?chapter=creatingSimple
Anonymous
You seem to have CSS turned off. Please don't fill out this field.
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:
http://javaluator.soft.fathzer.com/en/doc/tutorial.php?chapter=creatingSimple