TolliumUser::FormatFloat (open)

Format a float value partly according to the user's preferences

Syntax

LOADLIB "mod::tollium/lib/users.whlib";

STRING FUNCTION FormatFloat(FLOAT value, INTEGER decimals)

Parameters

FLOAT value

The float value to format

INTEGER decimals

The number of decimals (range 0 to 5)

Return value

STRING

The formatted float

Description

This function returns a money value as a string. The user's separator preference (only for the decimal (for example the ".") seperator) will be applied.