[PD] floating-point question

Mirko Petrovich mirko.petrovich at gmail.com
Fri Feb 17 22:27:12 CET 2012


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20120217/ac3d2ec3/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: basic_subtraction.pd
Type: application/octet-stream
Size: 325 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20120217/ac3d2ec3/attachment.obj>


More information about the Pd-list mailing list