BigFloat.GetPi Method

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.0

Overload List

GetPi(AccuracyGoal) Returns the value of pi to the specified number of digits.
GetPi(AccuracyGoal, RoundingMode) Returns the value of pi to the specified number of digits.

GetPi(AccuracyGoal)

Returns the value of pi to the specified number of digits.
C#
public static BigFloat GetPi(
	AccuracyGoal goal
)

Parameters

goal  AccuracyGoal
An AccuracyGoal value that specifies the desired accuracy.

Return Value

BigFloat
The number pi to the specified number of digits.

Remarks

Computing a very large number of digits may take a long time.

GetPi(AccuracyGoal, RoundingMode)

Returns the value of pi to the specified number of digits.
C#
public static BigFloat GetPi(
	AccuracyGoal goal,
	RoundingMode roundingMode
)

Parameters

goal  AccuracyGoal
The desired accuracy.
roundingMode  RoundingMode
A RoundingMode value that specifies how the result should be rounded.

Return Value

BigFloat
The number pi to the specified number of digits.

Remarks

Computing a very large number of digits may take a long time.

See Also