[PD] [sel] problem - matched value doesn't bang

cyrille henry ch at chnry.net
Tue Mar 22 19:31:19 CET 2016



Le 22/03/2016 19:26, João Pais a écrit :
>> hello,
>>
>> it look like rounding error. the rejected 91 is not really 91, but 90.999999 or similar.
>> using a [i] object, it is converted to 90.
>
> that would be one solution. the problem is that in other moments there will be floats there. what is the best way to avoid these errors? (had read about them, but never happened to me before)

[* 100]
[+ 0.5]
[i]


to match float using 2 digit precision (use 100 time the value in the sel object)


cheers
c

>
> _______________________________________________
> Pd-list at lists.iem.at mailing list
> UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list



More information about the Pd-list mailing list