Lucee 6.0.0.346-BETA Numberformat error on masking

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

Sample script below.
----------- START---------
< cf set fac = “0.0078”>
< cf set value1 = “0”>
< cf set value2 = “#numberformat(1/fac,‘9999.9999’)#”>
< cf output >
< cf set value = value1 * value2 >
</ cf output >
----------- END---------

Thanks,

Sonny

Don’t forget to tell us about your stack!

OS: Windows 11 (10.0) 64bit
Java Version: 1.8.0_341 (Oracle Corporation) 64bit
Tomcat Version: Apache Tomcat/9.0.65
Lucee Version: Lucee 6.0.0.346-BETA

It appears to be a regression in 6.0. The “resolution” is you don’t use Lucee 6 for now until it’s fixed :slight_smile: There are a handful of tickets related to BigDecimal changes that are in 6.x
https://luceeserver.atlassian.net/issues/?jql=fixVersion%20>%206.0.0.1%20AND%20text%20~%20"bigdecimal"

Hi Brad,

Noted. Thank you.

Regards,

Sonny