Lucee Function Reference
dollarformat()
Formats a string in U.S. format. (For other currencies, use LSCurrencyFormat)
Example
dollarformat(string number,[boolean useBrackets]):string
Category
currency,string,formatting
Arguments
The arguments for this function are set. You can not use other arguments except the following ones.
| Name | Type | Required | Default Value | Description |
|---|---|---|---|---|
| number | string | Yes | Number to format | |
| useBrackets | boolean | No | true | When a number is negative, by default, it is wrapped in brackets |