FormatNumber()

Syntax

*Buffer = FormatNumber(Number.d [, NbDecimals [, DecimalPoint$ [, ThousandSeperator$]]])
Description
Format a number into money-like format.

Parameters

Number The number to format
NbDecimals (optional) Number of decimals to display.
DecimalPoint$ (optional) The string to use to split the decimal and integer parts. It can be a multiple character string. Default value is ".".
ThousandSeperator$ (optional) The string to use to separate thousands. It can be a multiple character string. Default value is ",".

Return value

The formated number.

Example

  Debug FormatNumber(125400.25) ; Will display: 125,000.25

See Also

Str(), StrU(), StrF(), StrD()

Supported OS

All

<- FindString() - String Index - Hex() ->