BTW, I find it a lot easier to say:
$ perl -wle'print for atan2(1,0), atan2(0,1)' [download]
In reply to Re: wrong results of atan2 with bignum by ysth in thread wrong results of atan2 with bignum by ambrus