Small company logo:
   History
 
Advertising banner:
 
 Int
Home • Help • Customization Tools • FCAS • Language Reference • Int
 
Purpose
Removes the fractional part of a number and returns the truncated value as an integer or a long.
Syntax
Int (NumericExpression)


NumericExpression
Any valid numeric expression.

Example
Sub Main()
        Dim mynum As Double
        mynum = 3.1415
                Print "The whole number part of 'mynum' is:"; Int(mynum)
                Print "...and the decimal part of the number is:"; mynum - Int(mynum)
End Sub