Why Number displayed in scientific notation
I have tried to add two numbers and got a result displayed in scientific notation.
Then I have used the 'decimalformat()' function and result is wrong.
How can display the correct result. Please help
Please see the code I have used
<cfset N1=1>
<cfset N2=9999999999999899999999>
<cfset RESULT = N1+ N2>
<cfoutput>
#RESULT#
<br />
#decimalformat(RESULT)#
</cfoutput>
result :
1E+022
92,233,720,368,547,760.00
Thanks in advance
