Operator

# \*

<div class="rst-class">

forsearch

</div>

\*

<div class="rst-class">

forsearch

</div>

Operator

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

## Description

The \* operator is used to multiply two numbers.

## Usage

``` xojo
result = expression1 * expression2
```

| Part        | Type   | Description                                     |
|-------------|--------|-------------------------------------------------|
| result      | Number | The product of *expression1* and *expression2*. |
| expression1 | Number | Any numeric expression.                         |
| expression2 | Number | Any numeric expression.                         |

## Notes

You can use `Operator Multiply</api/language/operators/operator_overloads/operator_multiply>` to define the \* operator for classes.

## Sample code

This example stores the product of two numbers in a variable:

``` xojo
Var x As Integer
x = 50 * 30 ' x is 1500
```

## Compatibility

|                       |     |
|-----------------------|-----|
| **Project Types**     | All |
| **Operating Systems** | All |

<div class="seealso">

`Operator Multiply</api/language/operators/operator_overloads/operator_multiply>` function; `Operator precedence</api/language/operators/operator_precedence>`.

</div>
