API BreakUpLargeNumbers

Breaks up large numbers (>=1000), or shortens lengthy decimal values (<1000), into a localized string. valueString = BreakUpLargeNumbers(value);

Arguments

 * value : - The number to convert into a localized string

Returns

 * valueString : - The whole-number portion converted into a string if greater than 1000, or truncated to two decimals if less than 1000.

Details

 * Large numbers are grouped into thousands and millions with a, but no further grouping happens for even larger numbers (billions).
 * Small numbers with a decimal portion are separated with a  and truncated to two decimal places.
 * Not intended for use with negative numbers.

Example
BreakUpLargeNumbers(123);         -- 123 BreakUpLargeNumbers(123.456789);  -- 123.45 BreakUpLargeNumbers(1234567.89);  -- 1,234,567 BreakUpLargeNumbers(1234567890);  -- 1234,567,890