number formatting - convert numberformat (coldfusion) -


hi folks! got simple question coldfusion users, know how convert dynamic number decimals, example have code: #number# , equals to, example 10 need write 0.10 how do it? tried this: 0.#number# didnt work :)

so saying values in variable "number" have 2 decimal places @ end , need display decimal places?

if :

<cfset actualnumber = incomingnumber/10> <cfoutput>#numberformat(actualnumber,".00")#</cfoutput> 

should need.


Comments

Popular posts from this blog

mod rewrite - Doing external redirect. .htaccess NS flag not working. How to achieve similar results? -

mysql - How to insert just year and month into date field? -