If you are always wanting two decimal places, try #DecimalFormat(number)#

Paul Giesenhagen
QuillDesign
http://www.quilldesign.com
SiteDirector v2.0 - Commerce Builder



> I hate NumberFormat().  Can someone please help?
>
> I want my numbers to output like this:
>
> 123 = 123.00
> 123.1 = 123.10
> 123.00 = 123.00
> 0 = 0.00
>
> What would be the proper mask for this?  I've tried 999.00, but
> then "0" becomes ".00".  I've tried 990.00, but then "12"
> becomes "012.00".
>
> Arrggg!!
>
> BTW, CFMX is cool.
>
> 
______________________________________________________________________
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to