Documentation/Calc Functions/PI

    From The Document Foundation Wiki


    Function name:

    PI

    Category:

    Mathematical

    Summary:

    Returns the approximate value of the mathematical constant π to 14 decimal places.

    Syntax:

    PI()

    Returns:

    The real number 3.14159265358979, which is the approximate value of π to 14 decimal places.

    Arguments:

    None.

    Additional details:

    • π can be defined as the ratio of a circle's circumference to its diameter.
    • A common use of π is in converting angles between radians and degrees.
      • Multiply the radians by 180/π (approximately 57.295779513) to convert to degrees.
      • Multiply the degrees by π/180 (approximately 0.01745329252) to convert to radians.
    • For more background information about π, visit Wikipedia's Pi page.

    Examples:

    Formula Description Returns
    =PI() Here the function returns the value of π to 14 decimal places. 3.14159265358979
    =4*4*PI() Here the formula calculates the area in cm2 of a circle of radius 4 cm. The area of a circle is given by [math]\displaystyle{ \pi\times (radius)^{2} }[/math]. 50.2654824574367

    Related LibreOffice functions:

    DEGREES

    RADIANS

    SQRTPI

    ODF standard:

    Section 6.16.45, part 2

    Related (or similar) Excel functions:

    PI