Just found that
>> atan2(0, -55) ans = 3.1416 >> atan2(-1*0, -55)ans = -3.1416
I don't understand how is this possible? -1 *0 doesn't equal to 0?? How can I convert such behaviour to C++?
atan2negative zeroprecision
>> atan2(0, -55) ans = 3.1416 >> atan2(-1*0, -55)ans = -3.1416
Best Answer