Trail: PROIV Documentation > Developer > PROIV Developer > Developing Functions > Events and Logic > INT

 

 

Purpose

INT finds the integer portion of a numeric expression.
 

Syntax

variable = INT(operand)
 

Operation

operand is any valid numeric portion of a numeric expression.
 

Remarks

The value returned has the same sign as the expression.
 

Example

Assume #A=1.2,  #B=0.235, and #C=-4.6

#I=INT (#A)           sets #I to 1
#I=INT (#B)           sets #I to 0
#I=INT (#C)           sets #I to –4
 

Comment on this topic

Topic ID: 520072