Determines whether or not passed value is an integer.
JSV_isInteger(expI [, signed])
n/a
The isInteger function returns true if the expression expI contains an integer (signed or unsigned); otherwise, false.
The isInteger function uses the following arguments.
Argument | Description |
expI | A integer value. |
signed | Optional. Boolean value that indicates whether the integer should be evaluated as a signed (e.g., -23 or +34) or unsigned (e.g., 54) integer. Default value is true. |
n/a
JSV_toString, JSV_occurs, JSV_stripCharacters
The following lines of code
var f = 54.87;
document.write( "The number " + f + " is an integer? " + JSV_isInteger(f) );
f = 54;
document.write( "The number " + f + " is an integer? " + JSV_isInteger(f) );
produce
Copyright © 1998-2000 Roaring Fork Software. All rights reserved.