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

Lucas Cordiviola lucarda27 at hotmail.com
Tue Mar 22 20:32:24 CET 2016


> >> 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
Of course,
[* 100][+ 0.5][i][/100]
between [trigger] and  [sel] works ok.

Mensaje telepatico asistido por maquinas.


 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20160322/c5ede2b9/attachment.html>


More information about the Pd-list mailing list