Int Function

Returns the integer portion of a number.

Notkun:


Int (Tala)

Skilagildi:

Double

Viðföng:

Number: Any valid numeric expression.

Error codes:

5 Ógilt kall á stefju

Dæmi:


Sub ExampleInt
    Print Int(3.99) REM returns the value 3
    Print Int(0) REM returns the value 0
    Print Int(-3.14159) REM returns the value -4
End Sub