[PD] expr modulo negative

Hans Roels hans.roels at versateladsl.be
Tue Oct 14 14:45:50 CEST 2008


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





More information about the Pd-list mailing list