puzzled about floats

2007-09-24 Thread Neal Becker
from math import modf class nco (object): def __init__ (self, delta): self.delta = delta self.phase = 0.0 def __call__ (self): self.phase += self.delta f,i = modf (self.phase) print modf (self.phase) if (self.phase 1.0):

Re: puzzled about floats

2007-09-24 Thread Marc 'BlackJack' Rintsch
On Mon, 24 Sep 2007 14:13:18 -0400, Neal Becker wrote: from math import modf class nco (object): def __init__ (self, delta): self.delta = delta self.phase = 0.0 def __call__ (self): self.phase += self.delta f,i = modf (self.phase) print