Method Pi
Pi(Int32)
Calculates π rounded to the specified number of decimal digits.
Declaration
public static BigRational Pi(int digits)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | digits | The number of decimal digits to calculate. |
Returns
| Type | Description |
|---|---|
| BigRational | π rounded to the specified number of decimal digits. |
Remarks
Represents the ratio of the circumference of a circle to its diameter, specified by the constant, π.
Pi()
Calculates π rounded to MaxDigits.
Declaration
public static BigRational Pi()
Returns
| Type | Description |
|---|---|
| BigRational | π rounded to MaxDigits. |
Remarks
Represents the ratio of the circumference of a circle to its diameter, specified by the constant, π.