[PD] expr bug

Thomas Grill gr at grrrr.org
Sat Jan 15 22:57:16 CET 2005


Hi Stefan,
the reason is that (2/3) is treated as an integer division which yields 0.
That's not really pd-like, where all numbers should be floats....
Anyway, try 2./3.
best greetings,
Thomas

----- Original Message ----- 
From: "Stefan Turner" <stefan_turner at yahoo.co.uk>
To: <pd-list at iem.at>
Sent: Saturday, January 15, 2005 10:48 PM
Subject: [PD] expr bug


> Hi list,
>
> I haven't done much testing on this but it seems that:
>
> [expr (2/3)*(1000/$f1)], [expr 2/3*(1000/$f1)] and
> [expr (1000/$f1)*(2/3)]
>
> don't do anything (unless you input 0 in which case it
> complains about divide by zero) though [expr
> (1000/$f1)*2/3] works fine. I am using pd 0.37.1 devel
> (CCRMA) and expr 0.4.
>
> Stefan Turner
>
>
>
>
>
> ___________________________________________________________
> ALL-NEW Yahoo! Messenger - all new features - even more fun!
http://uk.messenger.yahoo.com
>
> _______________________________________________
> PD-list at iem.at mailing list
> UNSUBSCRIBE and account-management ->
http://iem.at/cgi-bin/mailman/listinfo/pd-list
>
>





More information about the Pd-list mailing list