Big Float Explicit Conversion Operators
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
Overload List
Explicit(BigFloat to BigInteger) | Converts a BigFloat to the nearest BigInteger. |
Explicit(BigFloat to Quad) | Converts a BigFloat value to the nearest Quad. |
Explicit(BigFloat to Byte) | Converts a BigFloat to a Byte value. |
Explicit(BigFloat to Decimal) | Converts a BigFloat to the nearest Decimal number. |
Explicit(BigFloat to Double) | Converts a BigFloat value to a Double. |
Explicit(BigFloat to Int16) | Converts a BigFloat to a Int16 value. |
Explicit(BigFloat to Int32) | Converts a BigFloat to a Int32 value. |
Explicit(BigFloat to Int64) | Converts a BigFloat to a long integer. |
Explicit(BigFloat to SByte) | Converts a BigFloat to a SByte value. |
Explicit(BigFloat to Single) | Converts a BigFloat to a single-precision floating-point number. |
Explicit(BigFloat to UInt16) | Converts a BigFloat to a UInt16 value. |
Explicit(BigFloat to UInt32) | Converts a BigFloat to an unsigned integer. |
Explicit(BigFloat to UInt64) | Converts a BigFloat to a long unsigned integer. |
Explicit Conversion (BigFloat to BigInteger)
Converts a BigFloat to the nearest BigInteger.
public static explicit operator BigInteger (
BigFloat value
)
Parameters
Return Value
BigIntegerA BigInteger value that contains the magnitude of value.
Remarks
This method never throws an exception.
Explicit Conversion (BigFloat to Quad)
public static explicit operator Quad (
BigFloat value
)
Parameters
Return Value
QuadA Quad with the same value as value.
Remarks
If value is too large to fit in a Quad, then either PositiveInfinity or NegativeInfinity is returned.
Explicit Conversion (BigFloat to Byte)
public static explicit operator byte (
BigFloat value
)
Parameters
Return Value
ByteA byte that contains the 8 least significant bits of value.
Remarks
This method never throws an exception.
Explicit Conversion (BigFloat to Decimal)
public static explicit operator decimal (
BigFloat value
)
Parameters
Return Value
DecimalA Decimal value that contains the 96 least significant bits of value.
Remarks
This method never throws an exception.
Explicit Conversion (BigFloat to Double)
public static explicit operator double (
BigFloat value
)
Parameters
Return Value
DoubleA Double with the same value as value.
Remarks
If value is too large to fit in a Double, then either PositiveInfinity or NegativeInfinity is returned.
Explicit Conversion (BigFloat to Int16)
public static explicit operator short (
BigFloat value
)
Parameters
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 (BigFloat to Int32)
public static explicit operator int (
BigFloat value
)
Parameters
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 (BigFloat to Int64)
Converts a BigFloat to a long integer.
public static explicit operator long (
BigFloat value
)
Parameters
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 (BigFloat to SByte)
public static explicit operator sbyte (
BigFloat value
)
Parameters
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 (BigFloat to Single)
Converts a BigFloat to a single-precision floating-point number.
public static explicit operator float (
BigFloat value
)
Parameters
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 (BigFloat to UInt16)
public static explicit operator ushort (
BigFloat value
)
Parameters
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 (BigFloat to UInt32)
Converts a BigFloat to an unsigned integer.
public static explicit operator uint (
BigFloat value
)
Parameters
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 (BigFloat to UInt64)
Converts a BigFloat to a long unsigned integer.
public static explicit operator ulong (
BigFloat value
)
Parameters
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.