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.
Return value:
true - on success. The value je an integer.
false - on error. The value is NOT integer.
Caution! The data type of the variable is not tested. JavaScript does not distinguish data subtipes of numbers (Number) (see Data types JavaScript), but VBScript and Pma 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, Double), then this method evalueates this value as whole number.
The Pm.GetVarType 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 object.
This method is also functional in Web panels.
JavaScriptVBScriptSelect and copy to clipboard

var bIsInt = Pm.IsInt(3.14);

Pm8.03.13: Created
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
- Pm
- Abs
- Cos
- E
- Exp
- IsInt
- LN2
- PI
- Pow
- Sin
- Tan
© MICROSYS, spol. s r.o.