API comma value

From Vendetta Lua
Jump to: navigation, search

comma_value

Definition: comma_value(float number) -> string formatted_number
Description:
returns a formatted version of the provided number according to API_Index#SI_unit
Arguments:
number: unformatted number
Returns:
formatted_number formatted number
Example:
assuming SI_unit is 3:

comma_value(1000.00) -> "1,000.00"