DOLLARFORMAT

I l @ ve RuBoard

Returns a number formatted with two decimal places, a thousands separator, and a dollar sign. If the value is negative, parentheses are used.

Syntax

 DollarFormat(number_to_be_formatted) 

Parameters

This function must have a number as a parameter.

Example

 <!--- format a price from the database to a currency amount --->  <cfoutput query="prices">   #dollarformat(price)# </cfoutput> 
I l @ ve RuBoard


Macromedia ColdFusion 5. Training from the Source
Macromedia ColdFusion 5 Training from the Source (With CD-ROM)
ISBN: 0201758474
EAN: 2147483647
Year: 2002
Pages: 99
Authors: Kevin Schmidt

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net