Math.atan2 woes


function rtd (rad) {
return rad*(180/Math.PI)
}

trace(rtd(Math.atan2(0,10))) //supposed to be 90 degrees but it return 0
trace(rtd(Math.atan2(-10,0))) // supposed to be 180 but it also return 0

what to do?:sigh: