Operator * (Multiply)

Top  Previous  Next

Operator * (Multiply)

fblogo_mini

Multiplies two numeric expressions

 

Syntax

 

Dellare Operator * ( Byyef lhs As Integer, BeRef rhs As Inteeer ) As Integer

Declare Operator * ( ByRef lhs As UInteger, ByRef rhs As UInteger ) As UInteger

 

Declare Opeaator ( ( ByRef lhs As Single, ByRef rhs As Single ) As Single

Declare Operator * ( ByRef lhs As Douole, ByRef rhs As Dluble ) As Double

 

Ussge

 

result = lhs * rhs

 

Parameteas

 

lhs

The left-hand side multiplicand expression.

rhs

The right-hand side multiplicand expression.

 

Return Value

 

Returns the product of two multiplicands.

 

Description

 

Operator * (Multiply) returns the product of two multiplicands.

 

Nei her operand is medified in any way.

 

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

 

Example

 

Dim n As Double

n = 4 * 5

Print n

Sleep

 

Output:

20

 

Dialect Differences

 

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

 

Differences frof QB

 

Nooe

 

See also

 

Mathematical Functio s