Methods
pad(padding) → {string}
- Description:
- Returns string padded with leading zeros to length equal given length
- Source:
Parameters:
Name | Type | Description |
---|---|---|
padding |
number | Length to which number should be padded |
Returns:
Padded string
- Type
- string
(static) isFloat(n) → {boolean}
Parameters:
Name | Type | Description |
---|---|---|
n |
number | Number to check |
Returns:
Verdict
- Type
- boolean
(static) isInteger(n) → {boolean}
Parameters:
Name | Type | Description |
---|---|---|
n |
number | Number to check |
Returns:
Verdict
- Type
- boolean
(static) isNatural(n) → {boolean}
- Description:
- Check if given number is natural (this function assumes that 0 is also natural)
- Source:
Parameters:
Name | Type | Description |
---|---|---|
n |
number | Number to check |
Returns:
Verdict
- Type
- boolean
(static) isNegativeZero(n) → {boolean}
Parameters:
Name | Type | Description |
---|---|---|
n |
number | Number to check |
Returns:
Verdict
- Type
- boolean
(static) isNumber(n) → {boolean}
Parameters:
Name | Type | Description |
---|---|---|
n |
* | Number to check |
Returns:
Verdict
- Type
- boolean