In some of the floating point calculation the result will be strange. Here is one example in a post by a user.

Im getting strange result: 596.45 * 100 = 59645.00000000001

Version: Lucee
Java: 1.8.0_162 (Oracle Corporation) 64bit
OS: Linux (3.10.0-1160.71.1.el7.x86_64) 64bit

It is a known issue and the solution is to use the function PrecisionEvaluate()

Here is another link for the other programming language as well.

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.