Function *pi* returns a close approximation of the irrational constant value of pi, also known as Archimedes' constant or Ludolph's constant. This value represents the ratio of a circle's circumference to its diameter. The *pi* function takes no parameter so the use of parentheses is not necessary. If parentheses are used, they must remain empty.

pi 3.14159265359

pi() 3.14159265359

Because constant pi is an irrational value, it cannot be represented exactly using any finite number of digits. In order to reduce rounding errors, Calcute internally stores more fractional digits than it normally displays:

3.1415926535897932384626433832795028841971693993751...

Copyright © Réjean Lefebvre 2004-2011

Delta, British Columbia, Canada