Macromedia ColdFusion 5 Training from the Source (With CD-ROM)

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

Категории