[PD] "wrong" floating point values in pyext
Frank Barknecht
fbar at footils.org
Mon Feb 20 11:31:29 CET 2006
Hi,
I admit, I'm currently still using py/pyext 0.2.1pre, if the following
is fixed in later versions, please ignore...
This is code for a simple pyext class which stores a float:
import pyext
class Anyarg(pyext._class):
_inlets = 1
_outlets = 1
def __init__(self):
self.x = 0.0
def x_1(self,n):
self.x = n
print self.x
However if I set this float x to a floating point value like "0.02", Pd will
print a value that is only near the target value:
"x 0.2" results in a printout of 0.20000000298
Is there something wrong?
Ciao
--
Frank Barknecht _ ______footils.org_ __goto10.org__
More information about the Pd-list
mailing list