Floor() / Int() can round a number down to > 1 less than its value

Description

For example, the following code:

https://trycf.com/scratch-pad/gist/a8b989bc1332537442dc2d9b251d7b39

The code produces the correct result (720) on Lucee 4.5 + also Adobe ColdFusion.

Environment

None

Activity

Show:
Pothys - MitrahSoft
January 27, 2020, 1:36 PM

I've checked this ticket and confirmed the issue happened on Lucee latest version 5.3.5.68 SNAPSHOT also. I use function int(720.00000000000000000000000000000252) it returns the result 719. But in ACF works fine, and returns 720 correctly.

Fixed

Assignee

Michael Offner

Reporter

Dominic Watson

Priority

Minor

Labels

None

Fix versions

Sprint

None