Fixed
Details
Details
Assignee
Michael Offner
Michael OffnerReporter
Ben Reid
Ben ReidNew 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
Fix versions
Affects versions
Priority
Created 3 July 2019 at 04:23
Updated 16 February 2021 at 15:03
Resolved 16 February 2021 at 15:01
There is a difference in behaviour between Lucee and Adobe ColdFusion for IsNumeric(...) and IsValid("numeric", ...) when called on a number expressed with exponent notation as either a value greater or less than zero, for example 2E05 = 200,000 and 0.00000001 = 1E-08.
Under Lucee, the negative exponent notation string is returning false, but true with positive exponent notation string.
Adobe ColdFusion returns true for both positive/negative exponent notation and for both values as a number/string.
Lucee:
IsNumeric(2E05) = true
IsNumeric("2E05") = true
IsNumeric(1E-08) = true
IsNumeric("1E-08") = false
Adobe ColdFusion:
IsNumeric(2E05) = true
IsNumeric("2E05") = true
IsNumeric(1E-08) = true
IsNumeric("1E-08") = true
Fiddle Provided:
https://trycf.com/gist/7ebea1909a02916f02c82f8c491ccc9b/lucee5?theme=cobalt