Files
doris/docs/en/sql-reference/sql-functions/string-functions/money_format.md
ZhangYu0123 1d9b3aeee7 [Doc] Repair document format (#4336)
The error format '##keyword' in a lot of docs. This pr is to repair document format. #4335
2020-08-13 23:39:41 +08:00

1.6 KiB

title, language
title language
money_format en

money_format

Description

Syntax

VARCHAR money format (Number)

The number is output in currency format, the integer part is separated by commas every three bits, and the decimal part is reserved for two bits.

example

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