BigFloat Constructor

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23

Overload List

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.
BigFloat(Int32, AccuracyGoal) Constructs a new arbitrary precision floating-point number from an integer.
BigFloat(Int64, AccuracyGoal) Constructs a new arbitrary precision floating-point number from an integer.
BigFloat(BigInteger, AccuracyGoal, RoundingMode) Constructs a new arbitrary precision floating-point number from a BigInteger.
BigFloat(BigRational, AccuracyGoal, RoundingMode) Constructs a new arbitrary precision floating-point number from a rational number.
BigFloat(Int32, BigInteger, Int32) 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.
C#
public BigFloat(
	BigInteger number
)

Parameters

number  BigInteger
A BigInteger.

BigFloat(BigRational)

Constructs a new arbitrary precision floating-point number from a rational number.
C#
public BigFloat(
	BigRational value
)

Parameters

value  BigRational
A BigRational number.

BigFloat(Double)

Constructs a new arbitrary precision floating-point number from a double-precision floating-point number.
C#
public BigFloat(
	double value
)

Parameters

value  Double
A Double.

BigFloat(Int32)

Constructs a new arbitrary precision floating-point number from an integer.
C#
public BigFloat(
	int value
)

Parameters

value  Int32
An integer.

BigFloat(Int64)

Constructs a new arbitrary precision floating-point number from an integer.
C#
public BigFloat(
	long value
)

Parameters

value  Int64
An integer.

BigFloat(Double, AccuracyGoal)

Constructs a new arbitrary precision floating-point number from a double-precision floating-point number.
C#
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.
C#
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.
C#
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.
C#
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.
C#
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.
C#
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.

See Also