----- Original Message ----- > From: Roman Haefeli <[email protected]> > To: [email protected] > Cc: > Sent: Thursday, March 8, 2012 1:52 PM > Subject: Re: [PD] Some more float weirdness/fun > > 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
Is this still an issue when float precision is 64-bit? -Jonathan > > > > _______________________________________________ > [email protected] mailing list > UNSUBSCRIBE and account-management -> > http://lists.puredata.info/listinfo/pd-list > _______________________________________________ [email protected] mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
