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