Fix Function

αžαŸ’αžšαž‘αž”αŸ‹β€‹αžαž˜αŸ’αž›αŸƒβ€‹αž‚αžαŸ‹β€‹αž“αŸƒβ€‹αž€αž“αŸ’αžŸαŸ„αž˜β€‹αž›αŸαž αžŠαŸ„αž™β€‹αž™αž€β€‹αž•αŸ’αž“αŸ‚αž€β€‹αž‘αžŸαž—αžΆαž‚β€‹αž“αŸƒβ€‹αž›αŸαžβ€‹αž…αŸαž‰Β αŸ”

Syntax:

Fix (Expression)

Return value:

αž‘αŸ’αžœαŸ

Parameters:

αž€αž“αŸ’αžŸαŸ„αž˜ αŸ– αž€αž“αŸ’αžŸαŸ„αž˜β€‹αž›αŸαž αžŠαŸ‚αž›β€‹αž’αŸ’αž“αž€β€‹αž…αž„αŸ‹β€‹αžαŸ’αžšαž‘αž”αŸ‹β€‹αžαž˜αŸ’αž›αŸƒβ€‹αž…αŸ†αž“αž½αž“β€‹αž‚αžαŸ‹Β αŸ”

Error codes:

5 αž€αžΆαžšβ€‹αž αŸ…β€‹αž”αŸ‚αž”αž”αž‘β€‹αž˜αž·αž“β€‹αžαŸ’αžšαžΉαž˜αžαŸ’αžšαžΌαžœ

Example:


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

Please support us!