Math
Combine two numbers.
Syntax
{ "id": "n1", "op": "math", "name": "math", "x": 0, "y": 0, "params": {} }
One out of it starts at "sourcePort": "out"; a parameter is set in params (leave out the ones at their default), driven by an edge to par:a, or read elsewhere as ch('math/a').
Inputs
This operator has no input ports.
Parameters
| Parameter | Kind | Default | Choices |
|---|---|---|---|
op | menu | "*" | +, -, *, /, min, max, pow, mod |
a | float | 1 | |
b | float | 1 |
Outputs
| Port | Type |
|---|---|
out | number |
Details
- Category: Numbers
- Operator:
math
Older projects
Projects saved before documents used operator classes. These convert to math when they open: MathOp.