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

Load Balancing in Bluemix using custom domain and DNS SRV records -

oracle - pls-00402 alias required in select list of cursor to avoid duplicate column names -

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