BigFloat.FromRational 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#
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.

Return Value

BigFloat

See Also