Int Function

Returns the integer portion of a number.

αƒ‘αƒ˜αƒœαƒ’αƒαƒ₯αƒ‘αƒ˜

Int (Number)

αƒ“αƒαƒ‘αƒ αƒ£αƒœαƒ”αƒ‘αƒ£αƒšαƒ˜ αƒ›αƒœαƒ˜αƒ¨αƒ•αƒœαƒ”αƒšαƒαƒ‘αƒ:

Double

Parameters:

Number: Any valid numeric expression.

Error codes:

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

αƒ›αƒαƒ’αƒαƒšαƒ˜αƒ—αƒ˜:

Sub ExampleInt

    Print Int(3.99) ' returns the value 3

    Print Int(0) ' returns the value 0

    Print Int(-3.14159) ' returns the value -4

End Sub