Fix Function

Returns the integer value of a numeric expression by removing the fractional part of the number.

āļšāˇāļģāļš āļģ⎓āļ­āˇ’āļē:


CInt (Expression)

āļ†āļ´āˇƒāˇ” āļŊāļļāˇāļ¯āˇ™āļą āļ…āļœāļē:

Double

āļ´āļģāˇāļ¸āˇ’āļ­āˇ“āļąāˇŠ:

Expression: Numeric expression that you want to return the integer value for.

Error codes:

5 Invalid procedure call

āļ‹āļ¯āˇāˇ„āļģāļĢāļē:


Sub ExampleFix
    Print Fix(3.14159) REM returns 3.
    Print Fix(0) REM returns 0.
    Print Fix(-3.14159) REM returns -3.
End Sub