Please Calculate This Circle’s Circumference
randomascii.wordpress.com
randomascii.wordpress.com
PI = 2 * Math.atan2(1,0);
The exercise listed in this link is one of futility, and also one of gross oversight. Using the above will give you the appropriate type (float or double, whichever you define PI to be) and will give you the best precision available on any given machine (though really, the machine precision issue is something that is somewhat agnostic towards language).I think teacher has some ideas here :) .