Big Integer 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 BigInteger from a byte array containing a two's complement representation of the number. |
Big | Constructs a new BigInteger for a Decimal value. |
Big | Constructs a new BigInteger. |
Big | Constructs a new BigInteger. |
Big | Constructs a new BigInteger. |
Big | Constructs a new BigInteger. |
Big | Constructs a new BigInteger from raw data. |
Big | Constructs a new BigInteger. |
Big | Constructs a new BigInteger from a sign and a byte array. |
BigInteger(Byte[])
Constructs a new BigInteger from a byte array containing a two's complement
representation of the number.
public BigInteger(
byte[] bytes
)
Parameters
Exceptions
Argument | bytes is null. |
BigInteger(Decimal)
Constructs a new BigInteger for a Decimal value.
Remarks
Any digits after the decimal point are discarded.
BigInteger(Double)
Constructs a new BigInteger.
Exceptions
Overflow | value is less than zero.
-or- value is NaN. -or- value is infinite. |
BigInteger(Int32)
Constructs a new BigInteger.
Remarks
value must be greater than or equal to zero. Otherwise, an OverflowException is thrown.
Exceptions
Overflow | value is less than zero. |
BigInteger(Int64)
Constructs a new BigInteger.
Remarks
value must be greater than or equal to zero. Otherwise, an OverflowException is thrown.
Exceptions
Overflow | value is less than zero. |
BigInteger(UInt32)
Constructs a new BigInteger.
BigInteger(UInt32[])
Constructs a new BigInteger from raw data.
BigInteger(UInt64)
Constructs a new BigInteger.
BigInteger(Int32, Byte[])
Constructs a new BigInteger from a sign and a byte array.
public BigInteger(
int sign,
byte[] bytes
)
Parameters
- sign Int32
- An integer that specifies the sign of the BigInteger.
- bytes Byte[]
- A Byte array that contains the bits of the number. The lowest index corresponds to the least significant byte.
Exceptions
Argument | bytes is null. |