Skip to main content

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​

ParameterKindDefaultChoices
opmenu"*"+, -, *, /, min, max, pow, mod
afloat1
bfloat1

Outputs​

PortType
outnumber

Details​

Older projects​

Projects saved before documents used operator classes. These convert to math when they open: MathOp.