IsInt - method of the Pm object
Test whether the value is integer.
Boolean IsInt(Variant Value)
|Value||(Variant) The value to be tested whether it is an integer or real number.|
true - on success. The value je an integer.
false - on error. The value is NOT integer.
does not distinguish data subtipes of numbers (Number
), but VBScript
objects return variables of certain data subtype (see Data types VBScript
). If an integer value is present in the variable of the real number subtype (Single
), then this method evalueates this value as whole number.
method can be used to test the variable for its data type. For numeric values the method returns only a flag that it is a number. The Pm.IsInt
method then can be used in order to detect whether it is an integer or real number.
This method is functional also in Macro expression $.expr
and in the onDraw
event of the PmgCanvas
This method is also functional in Web panels
var bIsInt = Pm.IsInt(3.14);