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

"/" Operator

Divides two values.

Syntax:


Result = Expression1 / Expression2

Parameters:

Result: A numeric variable that will contain the result of the division.

Expression1, Expression2: Numeric expressions that you want to divide.

Example:


Sub ExampleDivision1
    Print 5 / 5
End Sub
 
Sub ExampleDivision2
Dim iValue1 As Integer
Dim iValue2 As Integer
    iValue1 = 5
    iValue2 = 10
    Print iValue1 / iValue2
End Sub