BigFloat Explicit  Conversion Operators

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4

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.
C#
public static explicit operator BigInteger (
	BigFloat value
)

Parameters

value  BigFloat
The BigFloat to convert.

Return Value

BigInteger
A BigInteger value that contains the magnitude of value.

Remarks

This method never throws an exception.

Explicit Conversion (BigFloat to Quad)

Converts a BigFloat value to the nearest Quad.
C#
public static explicit operator Quad (
	BigFloat value
)

Parameters

value  BigFloat
The BigFloat value to convert.

Return Value

Quad
A 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)

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

Parameters

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

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

Parameters

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

Converts a BigFloat value to a Double.
C#
public static explicit operator double (
	BigFloat value
)

Parameters

value  BigFloat
The BigFloat value to convert.

Return Value

Double
A 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)

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

Parameters

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

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

Parameters

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

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

Parameters

value  BigFloat
The BigFloat 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 (BigFloat to SByte)

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

Parameters

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

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

Parameters

value  BigFloat
The BigFloat 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 (BigFloat to UInt16)

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

Parameters

value  BigFloat
The BigFloat 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 (BigFloat to UInt32)

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

Parameters

value  BigFloat
The BigFloat 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 (BigFloat to UInt64)

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

Parameters

value  BigFloat
The BigFloat 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.

See Also