[PD] expr modulo negative
IOhannes m zmoelnig
zmoelnig at iem.at
Tue Oct 14 14:16:23 CEST 2008
Hans Roels 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 ?
you also get a different result if you use [mod] or [%].
it's a feature.
fgmasdr
IOhannes
>
> 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