[PD] Some more float weirdness/fun
Jonathan Wilkes
jancsika at yahoo.com
Thu Mar 8 20:47:49 CET 2012
----- Original Message -----
> From: Roman Haefeli <reduzent at gmail.com>
> To: pd-list at iem.at
> 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
>
>
>
> _______________________________________________
> Pd-list at iem.at mailing list
> UNSUBSCRIBE and account-management ->
> http://lists.puredata.info/listinfo/pd-list
>
More information about the Pd-list
mailing list