The data type of result is usually a Double or a Doubleobject. The following are exceptions to this rule:
If | Then result is |
---|---|
Both expressions are Byte, Integer, or Single expressions, | a Single, if one of the expressions is a Single, else the result is a Double. If it overflows its legal range, a Run-time error will occur.. |
Both expressions are Byte, Integer, or Single objects, | a Single object unless it overflows its legal range; in which case a Run-time error will occur. |
Division involves a Decimal and any other data type, | a Decimal data type. |
If one or both expressions arestated as Nothing, a Variable Not Set
error occurs. Any expression that is Empty is treated as 0.
\= Operator | Arithmetic Operators | Operator Precedence in Visual Basic | Operator Summary