Update cookies preferences
Promotic

IsInt - method of the Pm object

Description:
Test whether the value is integer.
Syntax:
Boolean IsInt(Variant Value)
Parameters:
Value(Variant) The value to be tested whether it is an integer or real number.
Return value:
true - on success. The value is an integer.
false - on error. The value is NOT integer.
Note:
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.
Example:
JavaScriptVBScriptSelect and copy to clipboard

var bIsInt = Pm.IsInt(3.14);

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

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