[PD] Some more float weirdness/fun

Lorenzo Sutton lorenzofsutton at gmail.com
Sat Mar 10 21:22:39 CET 2012


On 09/03/12 19:18, Quim Llimona wrote:
> It's well-known that floats can't be treated the same way as integers...
> but since PD is aimed at non-engineers and non-scientists I think it
> would be a good idea to implement the "good" comparison algorithms (i.e.
> checking against a threshold, etc) inside [==] and so, just to make
> patching easier. Maybe it's already supposed to behave this way...

No, no...I don't agree (and hope initiating the thread didn't suggest 
this idea). [==] should be what it says exact comparison. Actually in 
the patch I was making it would have been simple to put in a [>=] 
instead which basically *is* a threshold... I just thought it would be 
nice to point out some float fun given all the discussions :)

Lorenzo.




More information about the Pd-list mailing list