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