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

libGdx unable to find files in android application data directory -

php - Webix Data Loading from Laravel Link -

python - Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] error -