Big Float.From Rational Method
Constructs a new arbitrary precision floating-point number from a rational number.
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
C#
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
public static BigFloat FromRational(
BigInteger numerator,
BigInteger denominator,
AccuracyGoal accuracyGoal,
RoundingMode roundingMode
)
Parameters
- numerator BigInteger
- The numerator of the rational number.
- denominator BigInteger
- The denominator of the rational number.
- accuracyGoal AccuracyGoal
- The desired AccuracyGoal for the floating-point number.
- roundingMode RoundingMode
- A RoundingMode value that specifies how the result should be rounded.