Quad Constructor

Definition

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

Overload List

Quad(BigInteger) Constructs a new Quad for a BigInteger value.
Quad(BigRational) Constructs a new Quad for a BigInteger value.
Quad(Decimal) Constructs a new Quad for a Decimal value.
Quad(Double) Constructs a new Quad.
Quad(Int32) Constructs a new Quad.
Quad(Int64) Constructs a new Quad.
Quad(UInt32) Constructs a new Quad.
Quad(UInt64) Constructs a new Quad.
Quad(Double, Double) Constructs a new quadruple precision number from two double-precision numbers.
Quad(Int64, Int64) Constructs a new quadruple precision number from raw data.

Quad(BigInteger)

Constructs a new Quad for a BigInteger value.
C#
public Quad(
	BigInteger value
)

Parameters

value  BigInteger
A BigInteger value.

Remarks

Any digits after the decimal point are discarded.

Quad(BigRational)

Constructs a new Quad for a BigInteger value.
C#
public Quad(
	BigRational value
)

Parameters

value  BigRational
A BigInteger value.

Remarks

Any digits after the decimal point are discarded.

Quad(Decimal)

Constructs a new Quad for a Decimal value.
C#
public Quad(
	decimal value
)

Parameters

value  Decimal
A Decimal value.

Remarks

Any digits after the decimal point are discarded.

Quad(Double)

Constructs a new Quad.
C#
public Quad(
	double value
)

Parameters

value  Double
A Double value.

Exceptions

OverflowException

value is less than zero.

-or-

value is NaN.

-or-

value is infinite.

Quad(Int32)

Constructs a new Quad.
C#
public Quad(
	int value
)

Parameters

value  Int32
A positive integer

Remarks

value must be greater than or equal to zero. Otherwise, an OverflowException is thrown.

Exceptions

OverflowException

value is less than zero.

Quad(Int64)

Constructs a new Quad.
C#
public Quad(
	long value
)

Parameters

value  Int64
A positive integer.

Remarks

value must be greater than or equal to zero. Otherwise, an OverflowException is thrown.

Exceptions

OverflowException

value is less than zero.

Quad(UInt32)

Constructs a new Quad.
C#
public Quad(
	uint value
)

Parameters

value  UInt32
A UInt32 value.

Quad(UInt64)

Constructs a new Quad.
C#
public Quad(
	ulong value
)

Parameters

value  UInt64
An unsigned long integer.

Quad(Double, Double)

Constructs a new quadruple precision number from two double-precision numbers.
C#
public Quad(
	double hi,
	double lo
)

Parameters

hi  Double
A double-precision value that contains the most significant part of the number.
lo  Double
A double-precision value that contains the least significant part of the number.

Remarks

The resulting quadruple precision number is the simple sum of hi and lo.

Quad(Int64, Int64)

Constructs a new quadruple precision number from raw data.
C#
public Quad(
	long high64bits,
	long low64bits
)

Parameters

high64bits  Int64
A 64 bit unsigned integer containing the high 64 bits of the number.
low64bits  Int64
A 64 bit unsigned integer containing the low 64 bits of the number.

See Also