BigFloat.RestrictPrecision Method

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

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
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