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


NumericExpression
Any valid numeric expression.

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