


The data type of result is usually the same as that of the most precise operand. The order of precision, from least to most precise, is Integer, Long,
Single, Double, Currency. The following are exceptions to this order:
If one or both operands are Null expressions, result is a Null. Any operand that is Empty (VarType 0) is treated as 0.
* Operator
When multiplication involves a Single and a Long, the data type of result is converted to a Double.
When the data type of result is a Variant of VarType 3 (Long), VarType 4 (Single), or VarType 7 (Date)
that overflows its legal range, result is converted to a Variant of VarType 5 (Double).
When the data type of result is a Variant of VarType 2 (Integer) that overflows its legal range, result is converted to a Variant of VarType 3 (Long).
| GrossPay = 10000
| // Assign gross pay.
|
| TotalTax = .18 * GrossPay
| // Calculate total tax.
|