Big Rational Explicit Conversion Operators
Definition
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Overload List
Explicit Conversion (BigRational to BigInteger)
public static explicit operator BigInteger (
BigRational value
)
Parameters
- value BigRational
- The BigRational to convert.
Return Value
BigIntegerA BigInteger value that contains the magnitude of value.
Remarks
This method never throws an exception.
Explicit Conversion (BigRational to Byte)
public static explicit operator byte (
BigRational value
)
Parameters
- value BigRational
- The BigRational to convert.
Return Value
ByteA byte that contains the 8 least significant bits of value.
Remarks
This method never throws an exception.
Explicit Conversion (BigRational to Decimal)
public static explicit operator decimal (
BigRational value
)
Parameters
- value BigRational
- The BigRational to convert.
Return Value
DecimalA Decimal value that contains the 96 least significant bits of value.
Remarks
This method never throws an exception.
Explicit Conversion (BigRational to Double)
public static explicit operator double (
BigRational value
)
Parameters
- value BigRational
- The BigRational to convert.
Return Value
DoubleA 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)
public static explicit operator short (
BigRational value
)
Parameters
- value BigRational
- The BigRational to convert.
Return Value
Int16The 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)
public static explicit operator int (
BigRational value
)
Parameters
- value BigRational
- The BigRational to convert.
Return Value
Int32The 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)
public static explicit operator long (
BigRational value
)
Parameters
- value BigRational
- The BigRational to convert.
Return Value
Int64The 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)
public static explicit operator sbyte (
BigRational value
)
Parameters
- value BigRational
- The BigRational to convert.
Return Value
SByteThe 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)
public static explicit operator float (
BigRational value
)
Parameters
- value BigRational
- The BigRational to convert.
Return Value
SingleA 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)
public static explicit operator ushort (
BigRational value
)
Parameters
- value BigRational
- The BigRational to convert.
Return Value
UInt16The 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)
public static explicit operator uint (
BigRational value
)
Parameters
- value BigRational
- The BigRational to convert.
Return Value
UInt32The 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)
public static explicit operator ulong (
BigRational value
)
Parameters
- value BigRational
- The BigRational to convert.
Return Value
UInt64The 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)
Remarks
Any digits after the decimal point in value are discarded.
Explicit Conversion (Double to BigRational)
Exceptions
Overflow | value is less than zero.
-or- value is NaN. -or- value is infinite. |
Explicit Conversion (Single to BigRational)
public static explicit operator BigRational (
float value
)
Parameters
- value Single
Return Value
BigRationalA BigInteger value that is exactly equal to value.
Remarks
This method never throws an exception.