TolliumUser::FormatMoney (open)
Format a money value partly according to the user's preferences
Syntax
LOADLIB "mod::tollium/lib/users.whlib";
STRING FUNCTION FormatMoney(MONEY value, INTEGER decimals, BOOLEAN round)
Parameters
MONEY value
The money value to format
INTEGER decimals
The number of decimals (range 0 to 5)
BOOLEAN round
Indicates if the value needs to be rounded (or expanded)
Return value
STRING
The formatted money
Description
This function returns a money value as a string. The user's separator preference (for both the decimal (for example the ".") and the thousand seperator (for example ",")) will be applied.