Used to divide two numbers and return an integer result.
result = number1\number2
The \ operator syntax has these parts:
Part | Description |
result | Any numeric variable. |
number1 | Any numeric expression. |
number2 | Any numeric expression. |
Before division is performed, the numeric expressions are rounded to Byte, Integer, or Long expressions.
Usually, the data type of result is a Byte, Byte variant, Integer, Integer variant, Long, or Long variant, regardless of whether result is a whole number. Any fractional portion is truncated. However, if any expression is Null, result is also Null. Any expression that is Empty is treated as 0.
Operator Precedence.
This example uses the \ operator to perform integer division.
MyValue = 11 \ 4 ' Returns 2.= 9 \ 3 ' Returns 3.= 100 \ 3 ' Returns 33.