Add two numbers, output the result
Name | Type | Opt | Description |
---|---|---|---|
initial-value | int or float | opt | Sets the initial value, to be added to a number received in the left inlet. A float argument causes the numbers to be added as floats. |
bang | In left inlet: Performs the addition with the numbers currently stored. If there is no argument, + initially holds . | |
int | input [int] |
In left inlet: The number is added to the number in the right inlet, and the result is sent out the outlet. |
(inlet1) | value-added-to [int] |
In right inlet: The number is stored for addition to a number received in the left inlet. |
float | input [float] |
Converted to + has a float argument. | , unless
set | set-input [int] |
In left inlet: The word The message functions similarly for all the arithmetic operators, logical operators, and bitwise operators: +, -, *, /, %, <, <=, ==, !-, !/, !=, >=, >, &&, ||, &, |, <<, and >>. The number is used as the left operand, and the expression is evaluated, but the result is not sent out. |
, followed by a number, adds that number to the number in the right inlet but nothing is sent out. A subsequent sends out the result.
list | input [list] |
In left inlet: The first number is added to the second number, and the result is sent out the outlet. |
Name | Description |
---|---|
expr | Evaluate a mathematical expression |
Max Basic Tutorial 6: Simple Math in Max | Max Basic Tutorial 6: Simple Math in Max |