[PD] "wrong" floating point values in pyext

geiger geiger at xdv.org
Mon Feb 20 17:37:21 CET 2006



On Mon, 20 Feb 2006, Frank Barknecht wrote:
> Hallo,
> day 5 hat gesagt: // day 5 wrote:
>
> > hay guyes what's goin on in this thraed lol ?
>
> You're cheating. Try attached variation!

Yes, thats what I meant. I have seen this "mistake" happen several times,
the bad thing is that I think it is not easy to handle it from within Pd,
as the error depends on the numbers you sum up, so you can't change select
to react on a range instead of a specific number. It is said to be bad to
test for equality with floating point numbers, and here is why. The
best thing is to design your counters the way day5 does it, but it is
something you have to know, otherwise you really get bad surprises.

Günter

>
> Ciao
> --
>  Frank Barknecht                 _ ______footils.org_ __goto10.org__
>




More information about the Pd-list mailing list