in reply to Re: What is wrong with this code?
in thread What is wrong with this code?

you'll have less overhead (and more portability) if you simply define pi as 3.14159

Blech. Get maximum precision without Math::Trig (and without programmer error):

$PI = 4 * atan2(1,1);
I reckon we are the only monastery ever to have a dungeon stuffed with 16,000 zombies.