An Accurate Value for Pi Is 4 Times the Arctangent of 1 (31659)
This article was previously published under Q31659
SUMMARY
An accurate value for Pi can be calculated from the ATN (arctangent)
function in Microsoft BASIC as follows:
PI# = 4# * ATN(1#)
PRINT PI#
The arctangent of 1, multiplied by 4, is equal to Pi.
Modification Type: |
Minor |
Last Reviewed: |
1/8/2003 |
Keywords: |
KB31659 |
|