# LSNumberFormat

Formats a number with an optional format mask

## Method Signature

```
LSNumberFormat(number=[any], mask=[string], locale=[string])
```

### Arguments

| Argument | Type     | Required | Description                                                                      | Default |
| -------- | -------- | -------- | -------------------------------------------------------------------------------- | ------- |
| `number` | `any`    | `true`   | The number to be formatted, or an empty string which will be treated as 0.       |         |
| `mask`   | `string` | `false`  | The formatting mask to apply using the {@link java.text.DecimalFormat} patterns. |         |
| `locale` | `string` | `false`  | An optional locale string to apply to the format                                 |         |

## Examples

## Related

* [BooleanFormat](https://boxlang.ortusbooks.com/boxlang-language/reference/built-in-functions/format/booleanformat)
* [DecimalFormat](https://boxlang.ortusbooks.com/boxlang-language/reference/built-in-functions/format/decimalformat)
* [NumberFormat](https://boxlang.ortusbooks.com/boxlang-language/reference/built-in-functions/format/numberformat)
