constants.pi | R Documentation |
The ratio of the circumference and diameter of a circle. This formulation of pi is based on the formulation used by NASA/JPL. It provides more digits of resolution than R's built-in version (6 digits after decimal point vs 15 digits).
constants.pi
An object of class numeric
of length 1.
NASA/JPL Edu. How Many Decimals of Pi Do We Really Need?. March 16, 2016. Accessed March 15, 2022. https://www.jpl.nasa.gov/edu/news/2016/3/16/how-many-decimals-of-pi-do-we-really-need/
# options(digits=22)
# pi #Default R version
##[1] 3.141593
# constants.pi #NASA/JPL Version
##[1] 3.1415926535897931
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.