Strange result with math.atan2()

Vedran Furač vedranf at riteh.hr
Tue May 2 11:14:21 EDT 2006


Serge Orlov wrote:

>> So, you can convert -0 to 0, but you must multiply the result with sign of
>> y, which is '-' (minus).
> 
> But you miss the fact that 0 is an *integer*, not a float, and -0
> doesn't exist.

Yes, you are right, I completely missed that 0 is integer in python, and I
need a float.


Regards,

Vedran Furač



More information about the Python-list mailing list