/t5/coldfusion-discussions/value-cannot-be-converted-to-a-number/m-p/861968#M79479Oct 15, 2008
Oct 15, 2008
Copy link to clipboard
Copied
LATEST
Hi,
Here are two more you can try:
Instead of LsNumberFormat you should use LSParseNumber.
(Depending on the local setting of your server this may make
a difference)
Use trim to clean-up the values:
<cfset total=trim(val1) * trim(val2)>
(The text representation of your numbers may include a
leading space, placeholder for the sign +/-)