Codebox Operators sub

sub

Subtract inputs

sub(in1, in2): out1

Arguments:

Arguments

NameTypeDefaultDescription
in1number

Performs the subtraction with the value currently stored.

in2number

The value in the right inlet is subtracted from this value and the result is sent out the outlet.

Returns

NameTypeDescription
out1number

The difference between the two numbers received in the inlets.

Aliases

  • minus
  • -