That's a problem with floating point calculations on computers, unfortuantely. Hard to work around that.
.hc
On Feb 17, 2012, at 4:27 PM, Mirko Petrovich wrote:
Hi all,
I'm having a problem with a patch doing some very simple math. The problem is that float 0.1 represents as 0.0999985 in some cases. I know this has to do with floating-point representation but sometimes this lead to bigger errors. Is there any way to fix this ? Changing the width of the number box doesn't work. Thanks for any help and sorry if this has been discussed earlier.
Saludos
Mirko
<basic_subtraction.pd>_______________________________________________ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
I hate it when they say, "He gave his life for his country." Nobody gives their life for anything. We steal the lives of these kids. -Admiral Gene LeRocque