29 lines
569 B
Plaintext
29 lines
569 B
Plaintext
|
|
{{alias}}( x )
|
|
Tests if a finite double-precision floating-point number is an integer.
|
|
|
|
The function assumes a finite number. If provided positive or negative
|
|
infinity, the function will return `true`, when, in fact, the result is
|
|
undefined.
|
|
|
|
Parameters
|
|
----------
|
|
x: number
|
|
Value to test.
|
|
|
|
Returns
|
|
-------
|
|
bool: boolean
|
|
Boolean indicating whether the value is an integer.
|
|
|
|
Examples
|
|
--------
|
|
> var bool = {{alias}}( 1.0 )
|
|
true
|
|
> bool = {{alias}}( 3.14 )
|
|
false
|
|
|
|
See Also
|
|
--------
|
|
|