Big Float.From Rational Method
Constructs a new arbitrary precision floating-point number from a rational number.
Definition
Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
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.