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@yahoo.co.uk To: pd-list@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!
PD-list@iem.at mailing list UNSUBSCRIBE and account-management ->