[PD] simple looped additions and subtraction renders wrong results

IOhannes m zmoelnig zmoelnig at iem.at
Wed Oct 22 17:55:46 CEST 2008


Lao Yu wrote:
> Hi,
> 
> I'm still playing around with Miller-Puckette's example patches. I 
> changed one and a repeated addition or subtraction of 0.1 renders 
> numbers with 5 positions behind the comma.
> I wouldn't know why that is so. Any explanation -even short- is 
> appreciated.

i would say this is due to limited precision of floating-point ... 
http://en.wikipedia.org/wiki/Floating_point


fgmadr
IOhannes




More information about the Pd-list mailing list