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

Popular posts from this blog

javascript - How to get current YouTube IDs via iMacros? -

c# - Maintaining a program folder in program files out of date? -

emulation - Android map show my location didn't work -