Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

* Operator

Multiplies two numbers.

number1 * number2

Parts

number1
Required. Any numeric expression.
number2
Required. Any numeric expression.

Result

The result is the product of number1 and number2

Supported Types

Byte, Short, Integer, Long, Single, Double, Decimal

Remarks

The data type of the result is the same as that of the data type with the greatest range. The order of range, from least to greatest range, is Byte, Short, Integer, Long, Single, Double, and Decimal.

If an expression is stated as Nothing, or is Empty, it is treated as zero.

Example

This example uses the * operator to multiply two numbers. The result is the product of the two operands.

Dim myValue As Double
myValue = 2 * 2   ' Returns 4.
myValue = 459.35 * 334.90   ' Returns 153836.315.

See Also

*= Operator | Arithmetic Operators | Operator Precedence in Visual Basic | Operators Listed by Functionality | Arithmetic Operators

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.