A newer version of Max is available. Click here to access the latest version of the documentation

* Reference

Multiply two numbers

*

Description

Multiplies two numbers together, and outputs the result upon receiving input in the left inlet.

Examples

Multiplied as ints... Floats are truncated before multiplication... ...unless there is a float argument

Arguments

initial [int or float]

Optional

Sets the initial value, to be multiplied by a number received in the left inlet. A float argument causes the numbers to be multiplied as floats.

Attributes

Common Box Attributes

Messages

bang

Performs the multiplication with the numbers currently stored. If there is no argument, * initially holds 0 as a multiplier.

int

Arguments

input [int]
The number is multiplied by the number in the right inlet, and the result is sent out the outlet.

  (inlet1)

Arguments

multiplier [int]
In right inlet: The number is stored for multiplication with a number received in the left inlet.

float

Arguments

input [float]
Converted to int before multiplication, unless * has a float argument.

set

Arguments

input [int]
The word set, followed by a number, sets the inlet's input without causing output.

list

Arguments

input [list]
In left inlet: The first number is multiplied by the second number, and the result is sent out the outlet.

Output

float

Only if there is an argument with a decimal point.

int

The product of the two numbers received in the inlets.