[PD] expr modulo negative
cyrille henry
cyrille.henry at la-kitchen.fr
Tue Oct 14 14:15:12 CEST 2008
you can use pd [mod] object or [%] object.
it's not the same for negative umber.
expr % is the same than pd %.
so i don't see any bug.
Cyrille
Hans Roels a écrit :
> 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 at iem.at mailing list
> UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
>
>
More information about the Pd-list
mailing list