Constructs a new arbitrary precision floating-point number from a rational number.
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static BigFloat FromRational(
BigInteger numerator,
BigInteger denominator,
AccuracyGoal accuracyGoal,
RoundingMode roundingMode
)
Public Shared Function FromRational (
numerator As BigInteger,
denominator As BigInteger,
accuracyGoal As AccuracyGoal,
roundingMode As RoundingMode
) As BigFloat
public:
static BigFloat^ FromRational(
BigInteger numerator,
BigInteger denominator,
AccuracyGoal accuracyGoal,
RoundingMode roundingMode
)
static member FromRational :
numerator : BigInteger *
denominator : BigInteger *
accuracyGoal : AccuracyGoal *
roundingMode : RoundingMode -> BigFloat
Parameters
- numerator
- Type: Extreme.MathematicsBigInteger
The numerator of the rational number. - denominator
- Type: Extreme.MathematicsBigInteger
The denominator of the rational number. - accuracyGoal
- Type: Extreme.MathematicsAccuracyGoal
The desired AccuracyGoal for the floating-point number. - roundingMode
- Type: Extreme.MathematicsRoundingMode
A RoundingMode value that specifies how the result should be rounded.
Return Value
Type:
BigFloat
Reference