BigInteger Explicit  Conversion Operators

Definition

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

Overload List

Explicit(BigInteger to Byte) Converts a BigInteger to a Byte value.
Explicit(BigInteger to Decimal) Converts a BigInteger to a Decimal number.
Explicit(BigInteger to Double) Converts a BigInteger to a double-precision floating-point number.
Explicit(BigInteger to Int16) Converts a BigInteger to a Int16 value.
Explicit(BigInteger to Int32) Converts a BigInteger to a Int32 value.
Explicit(BigInteger to Int64) Converts a BigInteger to a long integer.
Explicit(BigInteger to SByte) Converts a BigInteger to a SByte value.
Explicit(BigInteger to Single) Converts a BigInteger to a single-precision floating-point number.
Explicit(BigInteger to UInt16) Converts a BigInteger to a UInt16 value.
Explicit(BigInteger to UInt32) Converts a BigInteger to an unsigned integer.
Explicit(BigInteger to UInt64) Converts a BigInteger to a long unsigned integer.
Explicit(Decimal to BigInteger) Converts a Decimal number to a BigInteger value.
Explicit(Double to BigInteger) Converts a double-precision floating-point number to a BigInteger value.
Explicit(Single to BigInteger) Converts a single-precision floating-point number to a BigInteger value.

Explicit Conversion (BigInteger to Byte)

Converts a BigInteger to a Byte value.
C#
public static explicit operator byte (
	BigInteger value
)

Parameters

value  BigInteger
The BigInteger to convert.

Return Value

Byte
A byte that contains the 8 least significant bits of value.

Remarks

This method never throws an exception.

Explicit Conversion (BigInteger to Decimal)

Converts a BigInteger to a Decimal number.
C#
public static explicit operator decimal (
	BigInteger value
)

Parameters

value  BigInteger
The BigInteger to convert.

Return Value

Decimal
A Decimal value that contains the 96 least significant bits of value.

Remarks

This method never throws an exception.

Explicit Conversion (BigInteger to Double)

Converts a BigInteger to a double-precision floating-point number.
C#
public static explicit operator double (
	BigInteger value
)

Parameters

value  BigInteger
The BigInteger to convert.

Return Value

Double
A Double with the same value as value. If value is larger than MaxValue, PositiveInfinity is returned.

Remarks

This method never throws an exception.

Explicit Conversion (BigInteger to Int16)

Converts a BigInteger to a Int16 value.
C#
public static explicit operator short (
	BigInteger value
)

Parameters

value  BigInteger
The BigInteger to convert.

Return Value

Int16
The 16 bit integer that is contained in the 16 least significant bits of value.

Remarks

This method never throws an exception.

Explicit Conversion (BigInteger to Int32)

Converts a BigInteger to a Int32 value.
C#
public static explicit operator int (
	BigInteger value
)

Parameters

value  BigInteger
The BigInteger to convert.

Return Value

Int32
The signed 32 bit integer that is contained in the 32 least significant bits of value.

Remarks

This method never throws an exception.

Explicit Conversion (BigInteger to Int64)

Converts a BigInteger to a long integer.
C#
public static explicit operator long (
	BigInteger value
)

Parameters

value  BigInteger
The BigInteger to convert.

Return Value

Int64
A Int64 that contains the 63 least significant bits of value.

Remarks

This method never throws an exception.

Explicit Conversion (BigInteger to SByte)

Converts a BigInteger to a SByte value.
C#
public static explicit operator sbyte (
	BigInteger value
)

Parameters

value  BigInteger
The BigInteger to convert.

Return Value

SByte
The signed byte that is contained in the 8 least significant bits of value.

Remarks

This method never throws an exception.

Explicit Conversion (BigInteger to Single)

Converts a BigInteger to a single-precision floating-point number.
C#
public static explicit operator float (
	BigInteger value
)

Parameters

value  BigInteger
The BigInteger to convert.

Return Value

Single
A Single with the same value as value. If value is larger than MaxValue, PositiveInfinity is returned.

Remarks

This method never throws an exception.

Explicit Conversion (BigInteger to UInt16)

Converts a BigInteger to a UInt16 value.
C#
public static explicit operator ushort (
	BigInteger value
)

Parameters

value  BigInteger
The BigInteger to convert.

Return Value

UInt16
A byte that contains the 16 least significant bits of value.

Remarks

This method never throws an exception.

Explicit Conversion (BigInteger to UInt32)

Converts a BigInteger to an unsigned integer.
C#
public static explicit operator uint (
	BigInteger value
)

Parameters

value  BigInteger
The BigInteger to convert.

Return Value

UInt32
A UInt32 that contains the 32 least significant bits of value.

Remarks

This method never throws an exception.

Explicit Conversion (BigInteger to UInt64)

Converts a BigInteger to a long unsigned integer.
C#
public static explicit operator ulong (
	BigInteger value
)

Parameters

value  BigInteger
The BigInteger to convert.

Return Value

UInt64
A UInt64 that contains the 64 least significant bits of value.

Remarks

This method never throws an exception.

Explicit Conversion (Decimal to BigInteger)

Converts a Decimal number to a BigInteger value.
C#
public static explicit operator BigInteger (
	decimal value
)

Parameters

value  Decimal
A Decimal value.

Return Value

BigInteger

Remarks

Any digits after the decimal point in value are discarded.

Exceptions

OverflowExceptionvalue is less than zero. value is less than zero.

Explicit Conversion (Double to BigInteger)

Converts a double-precision floating-point number to a BigInteger value.
C#
public static explicit operator BigInteger (
	double value
)

Parameters

value  Double
A Double value.

Return Value

BigInteger

Exceptions

OverflowExceptionvalue is less than zero.

-or-

value is NaN.

-or-

value is infinite.

Explicit Conversion (Single to BigInteger)

Converts a single-precision floating-point number to a BigInteger value.
C#
public static explicit operator BigInteger (
	float value
)

Parameters

value  Single
A Single value.

Return Value

BigInteger

Exceptions

OverflowExceptionvalue is less than zero.

-or-

value is NaN.

-or-

value is infinite.

See Also