[Pyrex] Mod operator in python and pyrex

stephen at theboulets.net stephen at theboulets.net
Fri May 18 19:04:54 UTC 2007


I am getting this message in a pyrex module:

"Invalid operand types for '%' (float; double)"

The line of code is:

"rotorthetanow = rotortheta %(2.*pi)"

All three variables are floats.

Does the mod operator work in python for floats but not in pyrex? Any
workaround? Thanks.

Stephen




More information about the Pyrex mailing list