Module: webgis4u/util/string/formatNumber

Members

(inner, constant) rgx

Regex to test for a digit followed by 3 more digits
Source:

Methods

(static) formatNumber(number, decimalsopt) → {string}

Formats a number. In the case no number is provided 'NaN' is returned.
Parameters:
Name Type Attributes Description
number number The number to format.
decimals decimals <optional>
The optional number of decimals.
Source:
Returns:
The formated number as text.
Type
string

(inner) groupNumber(number) → {string}

Groups a number
Parameters:
Name Type Description
number string The number to group
Source:
Returns:
Type
string