<< Prev        Next >>

ID : 624

* Operator

Function

To obtain the product of 2 numeric data sets or the scalar multiple of vector type data.

Syntax

expression1 * expression2

Guaranteed entry

expression1
Designate numeric data or vector type data.
expression2
Designate numeric data.

Return value

Return the product in case of numeric data, or the scalar multiple result in case of vector type data and numeric data by vector type data.

Description

Either of the following 2 types of operation is performed depending on argument combination.

Product of numeric data

Operation of the product of numeric data is performed if the argument is numeric data.

Scalar multiple of vector type data

Operation of the scalar multiple of vector is performed if the left-hand argument of the operator is vector type data and the right-hand value is numeric data. Numeric data are multiplied by each vector type data element.

Dim aaa As Vector
aaa = V(100, 10, 1)
PrintDbg aaa * 4 ' V(400, 40, 4) is output.

An error occurs if the left-hand data are numeric and the right-hand data are vector type.

Attention

-

Example

-

ID : 624

<< Prev        Next >>