BigFloat.RestrictPrecision Method

Returns a BigFloat value with at most the specified precision and the same value as this instance.

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
C#
public BigFloat RestrictPrecision(
	AccuracyGoal accuracyGoal,
	RoundingMode roundingMode
)

Parameters

accuracyGoal  AccuracyGoal
The precision in bits of the new value.
roundingMode  RoundingMode
A RoundingMode value that specifies how the result should be rounded.

Return Value

BigFloat
A BigFloat value with at least accuracyGoal bits of precision with the same value as this instance.

Remarks

If the precision of this instance is less than or equal to accuracyGoal, this instance is returned.

See Also