Issues

Select view

Select search mode

 

IsNumeric() is inconsistent with NumberFormat() in Scientific Notation numbers

Fixed

Description

IsNumeric() and NumberFormat() are inconsistent when it comes to Scientific Notation numbers. The following expressions throws an error:

Also, ACF interprets scientific notation numbers differently from Lucee when the exponent value is large. Consider the following snippet:

Expression

Lucee

ACF

isNumeric("39E48756")

true

false

isNumeric("39E4875")

true

false

isNumeric("39E487")

true

false

isNumeric("39E48")

true

true

isNumeric("39E4")

true

true

Environment

None

Details

Assignee

Reporter

Priority

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

Created 27 January 2017 at 17:39
Updated 2 January 2018 at 20:55
Resolved 31 October 2017 at 05:07

Activity

Show:

Michael Offner30 January 2017 at 08:24

Estimate: 2h

Flag notifications