Big Float.Restrict Precision 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#
A BigFloat value with at least accuracyGoal bits of precision with the same value as this instance.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
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
BigFloatA 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.