Method Number.isInteger
Check whether a number is an integer
-
Syntax
Boolean Number.isInteger()
This functions checks whther a number is an integer. - Return value True if the number is an integer; false otherwise
-
Examples
- To find out whether a variable is an integer
// Declare variable var n = 16; // Output is true n.isInteger();
-
Download
Source
Unless otherwise noted all code in the JSLab Standard Library is licensed as GPLv3. See http://www.gnu.org/licenses/gpl.html for the entire license.
