Update cookies preferences
Promotic

Int - function of language VBScript

Description:
Returns the integer portion of a number.
In the PROMOTIC system it is better to use the Pm.Floor method.
Syntax:
Long Int(Double number)
Parameters:
number(Double) Any valid numeric expression.
Note:
Both Int and Fix remove the fractional part of a number and return the resulting integer value.
The difference between Int and Fix is that if number is negative, Int returns the first negative integer less then or equal to number, whereas Fix returns the first negative integer greater or equal to number.
Fix(number) is equivalent to:
Sgn(number) * Int(Abs(number))
Example:
VBScriptSelect and copy to clipboard

Dim nNumber
nNumber = Int(99.8)   ' Returns 99
nNumber = Int(-99.8)   ' Returns -100
nNumber = Int(-99.2)   ' Returns -100
PROMOTIC 9.0.31 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r.o.