BigRational Explicit  Conversion Operators

Definition

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

Overload List

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

Explicit Conversion (BigRational to BigInteger)

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

Parameters

value  BigRational
The BigRational to convert.

Return Value

BigInteger
A BigInteger value that contains the magnitude of value.

Remarks

This method never throws an exception.

Explicit Conversion (BigRational to Byte)

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

Parameters

value  BigRational
The BigRational 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 (BigRational to Decimal)

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

Parameters

value  BigRational
The BigRational 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 (BigRational to Double)

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

Parameters

value  BigRational
The BigRational to convert.

Return Value

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

Remarks

This method never throws an exception.

Explicit Conversion (BigRational to Int16)

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

Parameters

value  BigRational
The BigRational 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 (BigRational to Int32)

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

Parameters

value  BigRational
The BigRational 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 (BigRational to Int64)

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

Parameters

value  BigRational
The BigRational to convert.

Return Value

Int64
The signed 64 bit integer that is contained in the 64 least significant bits of value.

Remarks

This method never throws an exception.

Explicit Conversion (BigRational to SByte)

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

Parameters

value  BigRational
The BigRational 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 (BigRational to Single)

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

Parameters

value  BigRational
The BigRational to convert.

Return Value

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

Remarks

This method never throws an exception.

Explicit Conversion (BigRational to UInt16)

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

Parameters

value  BigRational
The BigRational to convert.

Return Value

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

Remarks

This method never throws an exception.

Explicit Conversion (BigRational to UInt32)

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

Parameters

value  BigRational
The BigRational to convert.

Return Value

UInt32
The unsigned 32 bit integer that is contained in the 32 least significant bits of value.

Remarks

This method never throws an exception.

Explicit Conversion (BigRational to UInt64)

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

Parameters

value  BigRational
The BigRational to convert.

Return Value

UInt64
The unsigned 64 bit integer that is contained in the 64 least significant bits of value.

Remarks

This method never throws an exception.

Explicit Conversion (Decimal to BigRational)

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

Parameters

value  Decimal
A Decimal value.

Return Value

BigRational

Remarks

Any digits after the decimal point in value are discarded.

Explicit Conversion (Double to BigRational)

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

Parameters

value  Double
A Double value.

Return Value

BigRational

Exceptions

OverflowExceptionvalue is less than zero.

-or-

value is NaN.

-or-

value is infinite.

Explicit Conversion (Single to BigRational)

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

Parameters

value  Single
 

Return Value

BigRational
A BigInteger value that is exactly equal to value.

Remarks

This method never throws an exception.

See Also