Fixed
Details
Assignee
Pothys - MitrahSoftPothys - MitrahSoftReporter
Zac SpitzerZac SpitzerPriority
MinorLabels
Fix versions
New Issue warning screen
Before you create a new Issue, please post to the mailing list first https://dev.lucee.org
Once the issue has been verified, one of the Lucee team will ask you to file an issue
Sprint
None
Details
Details
Assignee
Pothys - MitrahSoft
Pothys - MitrahSoftReporter
Zac Spitzer
Zac SpitzerPriority
Labels
Fix versions
New Issue warning screen
Before you create a new Issue, please post to the mailing list first https://dev.lucee.org
Once the issue has been verified, one of the Lucee team will ask you to file an issue
Sprint
None
Created 4 December 2024 at 16:01
Updated 15 March 2025 at 14:01
Resolved 17 December 2024 at 15:13
Found this while updating the tests to test both preciseMath true and false, toggling via the application tag
If preciseMath is enabled system wide, this works, if it’s disabled, it returns the wrong result?
<cfscript> dump(getApplicationSettings().preciseMath, true); application action="update" preciseMath=false; dump(getApplicationSettings().preciseMath, true); x = BitXOr("18446744073709551615", "1") & ""; res = "9223372036854775807"; dump(getApplicationSettings().preciseMath, true); if (x eq res) dump("ok") else { dump("error, expected"); dump("#res#"); dump("----got "); dump("#x#"); } echo("<hr>"); dump("enableprecise math"); application action="update" preciseMath=true; dump(getApplicationSettings().preciseMath, true); x = BitXOr("18446744073709551615", "1") & ""; res= "18446744073709551614"; dump(getApplicationSettings().preciseMath, true); if (x eq res) dump("ok") else { dump("error, expected"); dump("#res#"); dump("----got "); dump("#x#"); } </cfscript>
with presideMath=true in the admin
but when false in the admin