Syntax |
expression1 / expression2 |
||
Description |
Returns the quotient of expression1 and expression2. |
||
Comments |
The type of the result is Double, with the following exceptions: |
||
|
If one |
and the other |
then the type |
|
Integer |
Integer |
Single |
|
Single |
Single |
Single |
|
Boolean |
Boolean |
Single |
|
A runtime error is generated if the result overflows its legal range. When either or both expressions is Variant, then the following additional rules apply: If expression1 is Null and expression2 is Boolean, then the result is Empty. Otherwise, if either expression is Null, then the result is Null. Empty is treated as an Integer of value 0. If both expressions are either Integer or Single variants and the result overflows, then the result is automatically promoted to a Double variant. |
||
Example |
This example assigns values to two variables and their quotient to a third variable, then displays the result. Sub Main() |
||
See Also |
\ (operator): Operator Precedence (topic) |
Symbols |