Coldfusion number format -
i have code :
<cfset n = '222222222222222'> <cfset sum=0> <cfset sum += n> <cfoutput>#sum#</cfoutput>
the output :
2.22222222222e+014
is there way can output in normal form '222222222222222' ?
the value of n 222222222222222. it's big integer. perform arithmatic operation on big integer, need precision evaluate function. code should below:
<cfset n = '222222222222222'> <cfset sum=0> <cfset sum = precisionevaluate(sum + n)> <cfoutput>#sum#</cfoutput>
Comments
Post a Comment