* Operator

Purpose

Used to multiply two numbers.

Syntax

x * y

Description

The * operator is the arithmetic multiplication operator used to multiply an arithmetic expression.

Example

OpenW 1

Global x%, y%, a%

x% = 30

y% = 17

Print x * y   // Prints 510

KeyGet a%     // Press any key to close

CloseW 1

Remarks

When used with integers the compiler will optimize for integer math.

See Also

+, -, ^, *, /, \, %, Add, Sub, Mul, Div, ++, --, +=, -=, /= , *=, Operator Hierarchy

{Created by Sjouke Hamstra; Last updated: 24/06/2017 by James Gaite}