Binary Op
Two-operand arithmetic: add, subtract, multiply, divide, modulo, power, min, max. Takes two Float inputs and emits a single Float.
Node
Interactive preview is available in the interactive reader.
Sockets
a (in)- Float. First operand (default 0).
b (in)- Float. Second operand (default 0).
value (out)- Float. Result of the selected operation.
Parameters
Op- Selected operation. One of: Add (a+b), Subtract (a-b), Multiply (a·b), Divide (a/b), Modulo (a mod b), Power (a^b), Min(a,b), Max(a,b). Default: Add.
How It Works
Each operation is the standard JavaScript-number implementation. Divide and Modulo guard against b = 0: when the divisor is zero the output is clamped to the operand with the larger magnitude (so the graph keeps running without exploding into Infinity).