On Thu, 2012-03-08 at 16:23 +0100, Lorenzo Sutton wrote:
> Or, beware of trying to compare floats with [==] ...
> 
> Lorenzo.

That's a good example of the implications inherent in floats. What you
call a work-around is actually the correct solution. When counting, make
sure you count with something that can precisely represented by floats,
otherwise the error will grow with each iteration. Integers up to
1.6*10^7 meet that criterion.

Roman
 


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

Reply via email to