History  | 
Fix (math) 
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) 
 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 
 | ||||