Big Float Constructor
Definition
Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Overload List
Big | Constructs a new arbitrary precision floating-point number from a BigInteger. |
Big | Constructs a new arbitrary precision floating-point number from a rational number. |
Big | Constructs a new arbitrary precision floating-point number from a double-precision floating-point number. |
Big | Constructs a new arbitrary precision floating-point number from an integer. |
Big | Constructs a new arbitrary precision floating-point number from an integer. |
Big | Constructs a new arbitrary precision floating-point number from a double-precision floating-point number. |
Big | Constructs a new arbitrary precision floating-point number from an integer. |
Big | Constructs a new arbitrary precision floating-point number from an integer. |
Big | Constructs a new arbitrary precision floating-point number from a BigInteger. |
Big | Constructs a new arbitrary precision floating-point number from a rational number. |
Big | Constructs a new arbitrary precision floating-point number from the specified sign, mantissa, and exponent. |
BigFloat(BigInteger)
Constructs a new arbitrary precision floating-point number from a BigInteger.
BigFloat(BigRational)
Constructs a new arbitrary precision floating-point number from a rational number.
BigFloat(Double)
Constructs a new arbitrary precision floating-point number from a double-precision floating-point number.
BigFloat(Int32)
Constructs a new arbitrary precision floating-point number from an integer.
BigFloat(Int64)
Constructs a new arbitrary precision floating-point number from an integer.
BigFloat(Double, AccuracyGoal)
Constructs a new arbitrary precision floating-point number from a double-precision floating-point number.
public BigFloat(
double value,
AccuracyGoal accuracyGoal
)
Parameters
- value Double
- A Double.
- accuracyGoal AccuracyGoal
- An AccuracyGoal value that specifies the desired accuracy.
BigFloat(Int32, AccuracyGoal)
Constructs a new arbitrary precision floating-point number from an integer.
public BigFloat(
int value,
AccuracyGoal accuracyGoal
)
Parameters
- value Int32
- An integer.
- accuracyGoal AccuracyGoal
- An AccuracyGoal value that specifies the desired precision.
BigFloat(Int64, AccuracyGoal)
Constructs a new arbitrary precision floating-point number from an integer.
public BigFloat(
long value,
AccuracyGoal accuracyGoal
)
Parameters
- value Int64
- An integer.
- accuracyGoal AccuracyGoal
- An AccuracyGoal value that specifies the desired accuracy.
BigFloat(BigInteger, AccuracyGoal, RoundingMode)
Constructs a new arbitrary precision floating-point number from a BigInteger.
public BigFloat(
BigInteger number,
AccuracyGoal accuracyGoal,
RoundingMode roundingMode
)
Parameters
- number BigInteger
- A BigInteger.
- accuracyGoal AccuracyGoal
- The desired AccuracyGoal for the floating-point number.
- roundingMode RoundingMode
- A RoundingMode value that specifies how the result should be rounded.
BigFloat(BigRational, AccuracyGoal, RoundingMode)
Constructs a new arbitrary precision floating-point number from a rational number.
public BigFloat(
BigRational value,
AccuracyGoal accuracyGoal,
RoundingMode roundingMode
)
Parameters
- value BigRational
- A BigRational number.
- accuracyGoal AccuracyGoal
- The desired AccuracyGoal for the floating-point number.
- roundingMode RoundingMode
- A RoundingMode value that specifies how the result should be rounded.
BigFloat(Int32, BigInteger, Int32)
Constructs a new arbitrary precision floating-point number from the specified sign, mantissa, and exponent.
public BigFloat(
int sign,
BigInteger mantissa,
int exponent
)
Parameters
- sign Int32
- An integer that specifies the sign of the number.
- mantissa BigInteger
- A BigInteger value that specifies the mantissa.
- exponent Int32
- An integer that specifies the exponent.
Remarks
The decimal point is placed in front of the first digit of the mantissa. This produces a number between 1/2 (inclusive) and 1 (exclusive). The actual value is the sign times this number times 2 to the power exponent.