First: Always post cut-paste tracebacks so we can see actual error message.
Second: print out self.ACphi, XPLMGetDataf(self.ACphi) and math.radians(XPLMGetDataf(self.ACphi)) before this statement and you will find the problem. -Larry Bates moonman wrote: > Hello all, > > I've just jumped into Python trying to develop X-Plane plugins. > > All was chugging along well until I tried to use math.cos() > > snippet: > > import math > > .... > > cos_phi = math.cos(math.radians(XPLMGetDataf(self.ACphi))) # Error > occurs here > > > > Now XPLMGetDataf should be returning float. > > Is there something that I'm completely missing about how Python does > tyonig or something? > > Thanks in advance, > > Moonman > -- http://mail.python.org/mailman/listinfo/python-list