DollarFormat()

Formats a string in U.S. format. (For other currencies, use LSCurrencyFormat())

DollarFormat( number=string, useBrackets=boolean );

Returns: String

Argument Description Default
number
string, required

Number to format

useBrackets
boolean, optional

When a number is negative, by default, it is wrapped in brackets

Introduced: 7.0.0.177

true

Examples

writeOutput(dollarFormat(4.5));

See also