[%] and [mod] treat the sign differently. [mod] is monotonic but [%] is symmetrical about zero.
On Tue, 14 Oct 2008 13:45:50 +0100 Hans Roels hans.roels@versateladsl.be wrote:
Hello,
If you want to calculate the modulo of a negative number, you get a different result if you use the 'mod' object or 'expr' with %.
-1 4 | | mod | 3
-1 4 | | expr $f1 % $f2 | -1
I guess this is a bug in expr ?
Hans r
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list