Text Documents (Writer)
HTML Documents (Writer Web)
Spreadsheets (Calc)
Presentations (Impress)
Drawings (Draw)
Database Functionality (Base)
Formulae (Math)
Charts and Diagrams
Macros and Scripting
Office Installation
Common Help Topics
OneOffice Logo

Int Function

Returns the integer portion of a number.

Syntax:

Int (Number)

Return value:

Double

Parameters:

Number: A valid numeric expression.

Error codes:

5 Invalid procedure call

Example:


Sub ExampleInt
    Print Int(3.99) ' returns the value 3
    Print Int(0) ' returns the value 0
    Print Int(-3.1415926) ' returns the value -4
End Sub