# multiply

## Description

Multiplication of two numbers. The output will return the product of the two numbers.

## Input / Parameter

| Name   | Description                    | Input Type | Default | Options | Required |
| ------ | ------------------------------ | ---------- | ------- | ------- | -------- |
| value1 | The first number to multiply.  | Number     | -       | -       | Yes      |
| value2 | The second number to multiply. | Number     | -       | -       | Yes      |

## Output

| Description                            | Output Type |
| -------------------------------------- | ----------- |
| Returns the product of the two values. | Number      |

## Example

In this example, we will multiply two values and print the result in the console.

### Steps

1. Drag a `button` component into the canvas and open the `Action` tab. Select the `press` event of the button and drag the `Log.write` function to the event flow.
2. Call the function `Math.multiply` inside the `Log.write` function.
3. Enter the values to be multiplied.

   ![](https://399701567-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwmJ1RKjM2uNFaL6fO3Xu%2Fuploads%2Fgit-blob-0a207ec3fe34b1402f565ba859dbc8a27c4cf2ef%2Fmultiply-step-1.png?alt=media)

### Result

1. The console will print `12`.

   ![](https://399701567-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwmJ1RKjM2uNFaL6fO3Xu%2Fuploads%2Fgit-blob-df9e91c42402f08082a3351f3e4b7df305ce0cbc%2Fmultiply-result-1.png?alt=media)
