[PD] div vs. / & i
Mathieu Bouchard
matju at artengine.ca
Tue Feb 10 18:02:36 CET 2009
On Sun, 8 Feb 2009, Jonathan Wilkes wrote:
> Thanks a lot for the explanation. Would it be possible to add a help
> patch to pd, something like the one attached? div, mod, and % currently
> default to otherbinops-help.pd but aren't included in that patch.
It would be better if you used [*] and [+] to show that:
>> (x div y)*y + (x mod y) = x
>> int(x / y)*y + (x % y) = x
so that this [*] [+] combination is seen as undoing [div] and [mod], and
that [div] and [mod] are seen as splitting an integer into two parts in a
reversible way. (same for undoing [/] and [%]).
_ _ __ ___ _____ ________ _____________ _____________________ ...
| Mathieu Bouchard - tél:+1.514.383.3801, Montréal, Québec
More information about the Pd-list
mailing list