[PD] integer (mis)calculator

Joe Newlin jtnewlin at gmail.com
Thu Dec 8 22:37:30 CET 2011


Thanks Roman, Mathieu et al for the illuminating replies.

On Dec 8, 2011, at 7:57 AM, Mathieu Bouchard <matju at artengine.ca> wrote:

> Le 2011-12-08 à 00:13:00, Joe Newlin a écrit :
> 
>> Can someone explain what's going on in the attached example? I'm getting 7.1 minus 7 equals .099. I need to split two-digit integers, so this result is giving me problems.
> 
> in fractional powers of two,
> 
> 1/10 = 1/16 + 1/32 + 1/256 + 1/512 + 1/4096 + 1/8192 + 1/65536 + ...
> 
> in fractional binary digits, it's written like 0.000110011001100110011... it's periodic. However, a float is never periodic, so, the digits are chopped.
> 
> ______________________________________________________________________
> | Mathieu BOUCHARD ----- téléphone : +1.514.383.3801 ----- Montréal, QC



More information about the Pd-list mailing list