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