[PD] expr bug
gr at grrrr.org
Sat Jan 15 22:57:16 CET 2005
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.
----- 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!
> PD-list at iem.at mailing list
> UNSUBSCRIBE and account-management ->
More information about the Pd-list