I'm unable to reproduce that behaviour.
Probably it would be easier with :
- The javaluator version you use.
- The source code that produces that ouptut.
- The java version you use.
Nevertheless, you should know that double has not an infinite precision and the result seems to me not so strange (http://www.velocityreviews.com/forums/t139008-java-double-precision.html).
You probably should use a number formatter that rounds the result. The other option is to implement a custom evaluator using BigDecimal.
Best regards,
Jean-Marc Astesana
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm unable to reproduce that behaviour.
Probably it would be easier with :
- The javaluator version you use.
- The source code that produces that ouptut.
- The java version you use.
Nevertheless, you should know that double has not an infinite precision and the result seems to me not so strange (http://www.velocityreviews.com/forums/t139008-java-double-precision.html).
You probably should use a number formatter that rounds the result. The other option is to implement a custom evaluator using BigDecimal.
Best regards,
Jean-Marc Astesana