### Operator * (Multiply)

Multiplies two numeric expressions

**Syntax:**

declare operator * ( byref

declare operator * ( byref

declare operator * ( byref

declare operator * ( byref

*lhs*as integer, byref*rhs*as integer ) as integerdeclare operator * ( byref

*lhs*as uinteger, byref*rhs*as uinteger ) as uintegerdeclare operator * ( byref

*lhs*as single, byref*rhs*as single ) as singledeclare operator * ( byref

*lhs*as double, byref*rhs*as double ) as double**Usage:**

*result*=*lhs******

*rhs*

**Parameters:**

*lhs*
The left-hand side multiplicand expression.

*rhs*
The right-hand side multiplicand expression.

**Return Value:**

Returns the product of two multiplicands.

**Description:**

**returns the product of two multiplicands.**

`Operator *`(Multiply)Neither operand is modified in any way.

This operator can be overloaded to accept user-defined types.

**Examples:**

Dim n As Double

n = 4 * 5

Print n

Sleep

n = 4 * 5

Print n

Sleep

Output:

20

**Dialect Differences:**

- In the
*-lang qb*dialect, this operator cannot be overloaded.

**Differences from QB:**

- None

**See also:**

Back to Arithmetic Operators

Back to Operators