* Operator
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

* Operator

Multiplies two numbers.

number1 * number2


Required. Any numeric expression.
Required. Any numeric expression.


The result is the product of number1 and number2

Supported Types

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


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.


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

© 2015 Microsoft