Module format

Module format 

Source
Expand description

MySQL-compatible FORMAT function implementation.

FORMAT(X, D) - Formats the number X with D decimal places using thousand separators.

Structsยง

FormatFunction
MySQL-compatible FORMAT function.

Constantsยง

NAME ๐Ÿ”’

Functionsยง

add_thousand_separators ๐Ÿ”’
Add thousand separators (commas) to an integer string.
format_number_float ๐Ÿ”’
Format a float with thousand separators and decimal_places digits after decimal point.
format_number_integer ๐Ÿ”’
get_decimal_places ๐Ÿ”’
Get decimal places from various integer types.
get_float_value ๐Ÿ”’
Get float value from various numeric types.