# DollarFormat()

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

```
DollarFormat( number=string, useBrackets=boolean );
```

**Returns:** string

# Arguments

| Argument | Type | Required | Description | Default |
|----------|------|----------|-------------|---------|
| number | string | Yes | Number to format |  |
| useBrackets | boolean | No | When a number is negative, by default, it is wrapped in brackets | true |

# Examples

```cfml
    writeOutput(dollarFormat(4.5));
```







# Categories

[Currency features](../../categories/currency.md), [Formatting](../../categories/formatting.md), [Strings](../../categories/string.md)

# See Also

[LSCurrencyFormat()](lscurrencyformat.md)