> ## Documentation Index
> Fetch the complete documentation index at: /documents/llms.txt
> Use this file to discover all available pages before exploring further.

# money_format

> Formats a numeric value as a currency string with two decimal places and thousands separators.

This function returns a string formatted as a currency string. The integer part is separated by comma every three bits and the decimal part is reserved for two bits.

## Syntax

```Haskell theme={null}
VARCHAR money_format(Number)
```

## Examples

```Plain Text theme={null}
MySQL > select money_format(17014116);
+------------------------+
| money_format(17014116) |
+------------------------+
| 17,014,116.00          |
+------------------------+

MySQL > select money_format(1123.456);
+------------------------+
| money_format(1123.456) |
+------------------------+
| 1,123.46               |
+------------------------+

MySQL > select money_format(1123.4);
+----------------------+
| money_format(1123.4) |
+----------------------+
| 1,123.40             |
+----------------------+
```

## keyword

MONEY\_FORMAT,MONEY,FORMAT


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.