Part | Description | |
result | Required; any numeric variable. | |
number1 | Required; any numeric expression. | |
number2 | Required; any numeric expression. |
If | Then result is |
Both expressions are Byte, Integer, or Single expressions, | a Single unless it overflows its legal range; in which case, an error occurs. |
Both expressions are Byte, Integer, or Single variants, | a Single variant unless it overflows its legal range; in which case, result is a Variant containing a Double. |
Division involves a Decimal and any other data type, | a Decimal data type. |
Dim MyValue
MyValue = 10 / 4 ' Returns 2.5.
MyValue = 10 / 3 ' Returns 3.333333.