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?
Frank Barknecht _ ______footils.org_ __goto10.org__