Fix Function

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

Syntax:

Fix (Expression)

Return value:

قوش

پارامېتىر

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

Error codes:

D'oh! You found a bug (text/sbasic/shared/00000003.xhp#err5 not found).

مىسال:

Sub ExampleFix

    Print Fix(3.14159) ' returns 3.

    Print Fix(0) ' returns 0.

    Print Fix(-3.14159) ' returns -3.

End Sub