Java bug with ATAN2

Ok… i think i just tripped across a java bug in the Math.atan2(x,y) operation.

Atan2 should return the following results.


X	Y			Atan2
1	1			0.785398163
-1	1			2.35619449
1	-1			-0.785398163
-1	-1			-2.35619449


but if you run Atan2 with 1, -1 you dont get -0.78… instead you get 2.356!

Not sure if this is true for all versions of java… can anyone try this out and see what you get?

thanks!
j.