Next:
Comparisons and Logic
Up:
Pd Basics
Previous:
Toggles and Metro
Mathematical Operations
An operation is triggered by data or a "bang" at an object's left inlet.
The right inlet stores the last received value and initially defaults to 0 (for + and *), infinity for / and 1 for %.
Math operators can also take an
initial
right operand value via an object argument.
Math operators in Pd always perform floating-point calculations.
Both arguments of an operation can be sent to the left inlet as a list.
Various other math objects exist, including
abs
,
min
,
max
, and
pow
.
©2003-2026 McGill University. All Rights Reserved.
Maintained by
Gary P. Scavone
.