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 valueThe money value to format
INTEGER decimalsThe number of decimals (range 0 to 5)
BOOLEAN roundIndicates if the value needs to be rounded (or expanded)
Return value
STRINGThe 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.