cos: "Integer Required"?!?!?!?

moonman iant at the-wire.com
Thu Jun 8 10:38:19 EDT 2006


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




More information about the Python-list mailing list