numberformat error on masking

Description

Hi I would like to check how to resolve this issue.
If a number is more than assign numberformat mask will have some error.

Please Sample
----------- START---------
<cfset fac = "0.0078">
<cfset value1 = "0">
<cfset value2 = "#numberformat(1/fac,'9999.9999')#">
<cfoutput>
<cfset value = value1 * value2>
</cfoutput>
----------- END---------

Thanks,

Sonny

Environment

Version Lucee 6.0.0.346-BETA
Version Name Gelert
Release date Feb 21, 2023
Remote IP 0:0:0:0:0:0:0:1

Loader Version 5.3.9.160
Servlet Container Apache Tomcat/9.0.65
Java 1.8.0_341 (Oracle Corporation) 64bit
Host Name localhost
OS Windows 11 (10.0) 64bit

Attachments

1

Activity

Show:

Michael Offner 30 May 2023 at 09:24

Michael Offner 30 May 2023 at 09:15

Problem is that numberformat adds whitespace in front of the number and then the multiply operation cannot handle this operant having a whitespace.

Lucee 5 can handle this whitespace.

Zac Spitzer 29 March 2023 at 08:13

Pothys - MitrahSoft 2 March 2023 at 07:34

I added a testcase on this ticket
Pull Request:

Pothys - MitrahSoft 1 March 2023 at 08:30

Mailing list:

Fixed

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

Affects versions

Created 1 March 2023 at 03:16
Updated 30 May 2023 at 09:56
Resolved 30 May 2023 at 09:56