Quad Structure
Represents a real number in IEEE/IEC quadruple-precision
floating-point format.
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.1.0
C#
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.1.0
public readonly struct Quad : IComparable,
IEquatable<Quad>, IComparable<Quad>, IFormattable,
IEquatable<double>, IComparable<double>, IConvertible,
IBinaryFloatingPointIeee754<Quad>, IParsable<Quad>, ISpanFormattable,
ISpanParsable<Quad>, IUtf8SpanFormattable, IUtf8SpanParsable<Quad>,
IAdditionOperators<Quad, Quad, Quad>, IAdditiveIdentity<Quad, Quad>,
IBinaryNumber<Quad>, IBitwiseOperators<Quad, Quad, Quad>,
IComparisonOperators<Quad, Quad, bool>, IEqualityOperators<Quad, Quad, bool>,
IDecrementOperators<Quad>, IDivisionOperators<Quad, Quad, Quad>,
IIncrementOperators<Quad>, IModulusOperators<Quad, Quad, Quad>,
IMultiplicativeIdentity<Quad, Quad>, IMultiplyOperators<Quad, Quad, Quad>,
INumber<Quad>, INumberBase<Quad>, ISubtractionOperators<Quad, Quad, Quad>,
IUnaryNegationOperators<Quad, Quad>, IUnaryPlusOperators<Quad, Quad>,
IExponentialFunctions<Quad>, IFloatingPointConstants<Quad>, IFloatingPoint<Quad>,
ISignedNumber<Quad>, IFloatingPointIeee754<Quad>, IHyperbolicFunctions<Quad>,
ILogarithmicFunctions<Quad>, IPowerFunctions<Quad>, IRootFunctions<Quad>,
ITrigonometricFunctions<Quad>, IMinMaxValue<Quad>- Implements
- IComparable, IComparable<Quad>, IComparable<Double>, IConvertible, IEquatable<Quad>, IEquatable<Double>, IFormattable, IParsable<Quad>, ISpanFormattable, ISpanParsable<Quad>, IUtf8SpanFormattable, IUtf8SpanParsable<Quad>, IAdditionOperators<Quad, Quad, Quad>, IAdditiveIdentity<Quad, Quad>, IBinaryFloatingPointIeee754<Quad>, IBinaryNumber<Quad>, IBitwiseOperators<Quad, Quad, Quad>, IComparisonOperators<Quad, Quad, Boolean>, IDecrementOperators<Quad>, IDivisionOperators<Quad, Quad, Quad>, IEqualityOperators<Quad, Quad, Boolean>, IExponentialFunctions<Quad>, IFloatingPoint<Quad>, IFloatingPointConstants<Quad>, IFloatingPointIeee754<Quad>, IHyperbolicFunctions<Quad>, IIncrementOperators<Quad>, ILogarithmicFunctions<Quad>, IMinMaxValue<Quad>, IModulusOperators<Quad, Quad, Quad>, IMultiplicativeIdentity<Quad, Quad>, IMultiplyOperators<Quad, Quad, Quad>, INumber<Quad>, INumberBase<Quad>, IPowerFunctions<Quad>, IRootFunctions<Quad>, ISignedNumber<Quad>, ISubtractionOperators<Quad, Quad, Quad>, ITrigonometricFunctions<Quad>, IUnaryNegationOperators<Quad, Quad>, IUnaryPlusOperators<Quad, Quad>
Remarks
Use the Quad structure to represent real numbers with an extended range and precision.
Constructors
| Quad( | Constructs a new Quad for a BigInteger value. |
| Quad( | Constructs a new Quad for a BigInteger value. |
| Quad( | Constructs a new Quad for a Decimal value. |
| Quad( | Constructs a new Quad. |
| Quad( | Constructs a new Quad. |
| Quad( | Constructs a new Quad. |
| Quad( | Constructs a new Quad. |
| Quad( | Constructs a new Quad. |
| Quad( | Constructs a new quadruple precision number from two double-precision numbers. |
| Quad( | Constructs a new quadruple precision number from raw data. |
Properties
| High64Bits | Gets the upper 64 bits in the binary representation of the quadruple precision floating-point number. |
| Low64Bits | Gets the lower 64 bits in the binary representation of the quadruple precision floating-point number. |
Methods
| Abs | Returns the absolute value of a quadruple precision number. |
| Acos | Returns the angle whose cosine is the specified number. |
| Acosh | Returns the inverse hyperbolic cosine of a number. |
| Acos | Returns the angle whose cosine is the specified number in multiples of π. |
| Asin | Returns the angle whose sine is the specified number. |
| Asinh | Returns the inverse hyperbolic sine of a number. |
| Asin | Returns the angle whose sine is the specified number. |
| Atan | Returns the angle whose tangent is the specified number as multiples of π. |
| Atan2 | Returns the angle between the X-axis and the ray from the origin to the specified point. |
| Atan2Pi | Computes the arc-tangent for the quotient of two values and divides the result by pi. |
| Atanh | Returns the inverse hyperbolic tangent of a number. |
| Atan | Returns the angle whose tangent is the specified number as multiples of π. |
| Bit | Returns the largest value that compares less than a specified value. |
| Bit | Returns the smallest value that compares greater than a specified value. |
| Cbrt | Computes the cube-root of a value. |
| Ceiling | Returns the smallest integral value that is greater than or equal to the specified quadruple precision number. |
| Clamp | Clamps a value to an inclusive minimum and maximum value. |
| Compare | Compares two quadruple-precision numbers. |
| Compare | Compares a number to another number. |
| Compare | Compares a number to another number. |
| Copy | Copies the sign of a value to the sign of another value. |
| Cos | Returns the cosine of the specified angle. |
| Cosh | Returns the hyperbolic cosine of the specified angle. |
| Cos | Returns the cosine of the specified angle in multiples of π. |
| Create | Creates an instance of the current type from a value, throwing an overflow exception for any values that fall outside the representable range of the current type. |
| Create | Creates an instance of the current type from a value, saturating any values that fall outside the representable range of the current type. |
| Create | Creates an instance of the current type from a value, truncating any values that fall outside the representable range of the current type. |
| Equals( | Tests whether a number equals another number. |
| Equals( | Indicates whether this instance and a specified object are equal. (Overrides ValueType.Equals(Object)) |
| Equals( | Tests whether a number equals another number. |
| Erf | Evaluates the error function. |
| Erfc | Evaluates the complementary error function. |
| Exp | Returns e raised to the specified power. |
| Exp10 | Computes 10 raised to a given power. |
| Exp10M1 | Computes 10 raised to a given power and subtracts one. |
| Exp2 | Computes 2 raised to a given power. |
| Exp2M1 | Computes 2 raised to a given power and subtracts one. |
| Exp | Computes E raised to a given power and subtracts one. |
| Exp | Returns e raised to the specified power to the specified accuracy. |
| Floor | Returns the largest integer less than or equal to the specified quadruple precision number. |
| Fused | Computes the fused multiply-add of three values. |
| Get | Returns the hash code for this instance. (Overrides ValueType.GetHashCode()) |
| Get | Gets the Type of the current instance. (Inherited from Object) |
| Hypot | Gets the length of the hypotenuse of a right-angled triangle with sides of specified length. |
| Ieee754Remainder | Computes the remainder of two values as specified by IEEE 754. |
| ILog | Computes the integer logarithm of a value. |
| Inverse | Evaluates the inverse of the error function. |
| Inverse | Evaluates the inverse of the complementary error function. |
| IsEven | Determines if a value represents an even integral number. |
| IsFinite | Returns whether the specified quadruple-precision floating-point number is finite. |
| IsInfinity | Returns whether the specified quadruple-precision floating-point number is infinite. |
| IsInteger | Determines if a value represents an integral number. |
| IsNa | Checks if the value of a value is "Not a Number." |
| IsNegative | Determines if a value represents a negative real number. |
| IsNegative | Returns whether the specified quadruple-precision floating-point number is equal to negative infinity. |
| IsNormal | Returns whether the specified quadruple-precision floating-point number is normal. |
| IsOdd | Determines if a value represents an odd integral number. |
| IsPositive | Determines if a value represents zero or a positive real number. |
| IsPositive | Returns whether the specified quadruple-precision floating-point number is equal to positive infinity. |
| IsPow2 | Determines if a value is a power of two. |
| IsReal | Determines if a value represents a real number. |
| IsSubnormal | Returns whether the specified quadruple-precision floating-point number is subnormal. |
| Log( | Returns the natural (base e) logarithm of a specified number. |
| Log( | Returns the logarithm of a specified number in a specified base. |
| Log10 | Returns the base 10 logarithm of a specified number. |
| Log1Plus | Returns the natural logarithm of 1 plus the argument. |
| Log2 | Returns the base 2 logarithm of a specified number. |
| Max | Returns the larger of two quadruple precision numbers. |
| Max | Compares two values to compute which has the greater magnitude. |
| Max | Compares two values to compute which has the greater magnitude and returning the other value if an input is NaN. |
| Max | Compares two values to compute which is greater and returning the other value if an input is NaN. |
| Min | Returns the smaller of two quadruple precision numbers. |
| Min | Compares two values to compute which has the lesser magnitude. |
| Min | Compares two values to compute which has the lesser magnitude and returning the other value if an input is NaN. |
| Min | Compares two values to compute which is lesser and returning the other value if an input is NaN. |
| Parse( | Converts a string value to a Quad. |
| Parse( | Converts a span of characters to a Quad. |
| Parse( | Converts a string value to a Quad. |
| Parse( | Converts a string value to a Quad. |
| Parse( | Converts a span of characters to a Quad. |
| Parse( | Converts a string value to a Quad. |
| Pow( | Returns a specified number raised to the specified power. |
| Pow( | Returns a number raised to an integer power. |
| Reciprocal | Computes an estimate of the reciprocal of a value. |
| Reciprocal | Computes an estimate of the reciprocal square root of a value. |
| Root | Computes the n-th root of a value. |
| Round( | Rounds a Quad value to the nearest integral value. |
| Round( | Rounds a Quad value to a specified number of fractional digits. |
| Round( | Rounds a Quad value to the nearest integer. A parameter specifies how to round the value if it is midway between two other numbers. |
| Round( | Rounds a Quad value to a specified number of fractional digits. A parameter specifies how to round the value if it is midway between two other numbers. |
| Scale | Multiplies a quadruple-precision value by a power of two. |
| Sign | Gets the sign of the quadruple precision number: -1, 0, or 1. |
| Sin | Returns the sine of the specified angle. |
| Sin | Computes the sine and cosine of a quadruple precision value. |
| Sin | Computes the sine and cosine of a quadruple precision value. |
| Sinh | Returns the hyperbolic sine of the specified angle. |
| Sin | Returns the sine of the specified angle in multiples of π. |
| Sqrt | Returns the square root of a number. |
| Sqrt1pxm1 | Returns the difference between the square root of a number close to 1, and 1. |
| Tan | Returns the tangent of the specified angle. |
| Tanh | Returns the hyperbolic tangent of the specified angle. |
| Tan | Returns the tangent of the specified angle in multiples of π. |
| ToString() |
Returns a String representation of the number.
(Overrides ValueType.ToString()) |
| ToString( | Formats the value of the current instance using the specified format. |
| ToString( | Formats the value of the current instance using the specified format. |
| ToString( | Formats the value of the current instance using the specified format. |
| Truncate | Calculates the integral part of a specified quadruple precision number. |
| Try | Formats the value of the current instance using the specified format. |
| Try | Attempts to convert a string value to a Quad. |
| Try | Attempts to convert a span of characters to a Quad. |
| Try | Attempts to convert a string value to a Quad. |
| Try | Attempts to convert a string value to a Quad. |
| Try | Attempts to convert a string value to a Quad. |
Operators
| Addition( | Adds two quadruple-precision floating-point numbers. |
| Decrement( | Decrements a quadruple-precision floating-point number by one. |
| Division( | Divides one quadruple-precision floating-point number by another. |
| Equality( | Returns whether left quadruple-precision floating-point number is equal to another. |
| Explicit(BigInteger to Quad) | Converts a BigInteger number to a Quad value. |
| Explicit(Decimal to Quad) | Converts a Decimal number to a Quad value. |
| Explicit(Quad to Byte) | Converts a Quad to a Byte value. |
| Explicit(Quad to Decimal) | Converts a Quad to a Decimal number. |
| Explicit(Quad to Double) | Converts a Quad to a double-precision floating-point number. |
| Explicit(Quad to Half) | Converts a Quad to a half-precision floating-point number. |
| Explicit(Quad to Int16) | Converts a Quad to a Int16 value. |
| Explicit(Quad to Int32) | Converts a Quad to a Int32 value. |
| Explicit(Quad to Int64) | Converts a Quad to a long integer. |
| Explicit(Quad to SByte) | Converts a Quad to a SByte value. |
| Explicit(Quad to Single) | Converts a Quad to a single-precision floating-point number. |
| Explicit(Quad to UInt16) | Converts a Quad to a UInt16 value. |
| Explicit(Quad to UInt32) | Converts a Quad to an unsigned integer. |
| Explicit(Quad to UInt64) | Converts a Quad to a long unsigned integer. |
| Explicit(Single to Quad) | Converts a single-precision floating-point number to a Quad value. |
| Exponent( | Represents the exponentiation operator. |
| Exponent( | Represents the exponentiation operator. |
| Exponentiation( | Represents the exponentiation operator. |
| Exponentiation( | Represents the exponentiation operator. |
| Greater | Returns whether left quadruple-precision floating-point number is greater than another. |
| Greater | Returns whether left quadruple-precision floating-point number is greater than or equal to another. |
| Implicit(Byte to Quad) | Converts a Byte value to a Quad number. |
| Implicit(Double to Quad) | Converts a double-precision floating-point number to a quadruple-precision floating-point number. |
| Implicit(Half to Quad) | Converts a half-precision floating-point number to a quadruple-precision floating-point number. |
| Implicit(Int16 to Quad) | Converts a 16 bit signed integer to a Quad value. |
| Implicit(Int32 to Quad) | Converts a 32 bit signed integer to a Quad value. |
| Implicit(Int64 to Quad) | Converts a 64 bit signed integer to a Quad value. |
| Implicit(SByte to Quad) | Converts a signed byte to a Quad value. |
| Implicit(UInt16 to Quad) | Converts a 16 bit unsigned integer to a Quad value. |
| Implicit(UInt32 to Quad) | Converts a 32 bit unsigned integer to a Quad value. |
| Implicit(UInt64 to Quad) | Converts a 64 bit unsigned integer to a Quad value. |
| Increment( | Increments a quadruple-precision floating-point number by one. |
| Inequality( | Returns whether left quadruple-precision floating-point number is not equal to another. |
| Less | Returns whether left quadruple-precision floating-point number is less than another. |
| Less | Returns whether left quadruple-precision floating-point number is less than or equal to another. |
| Modulus( | Computes the remainder after dividing one quadruple-precision floating-point number by another. |
| Multiply( | Multiplies two quadruple-precision floating-point numbers. |
| Subtraction( | Subtracts one quadruple-precision floating-point number from another. |
| Unary | Returns the quadruple-precision number with the opposite sign. |
| Unary | Returns the quadruple-precision number with the same sign. |
Fields
| Accuracy | Defines the accuracy of quadruple precision floating-point numbers. |
| E | The number e, basis of the natural logarithm, as a Quad, |
| Epsilon | Gets the machine precision quadruple precision floating-point numbers. |
| Max | The largest possible Quad. |
| Min | Gets the smallest positive number that has a normalized representation. |
| Min | Gets the smallest positive number greater than zero. |
| Minus | The number -1 as a Quad. |
| Min | The smallest possible Quad. |
| NaN | Not-a-Number, the value returned when the result is undefined. |
| Negative | Negative infinity as a Quad, |
| Negative | Negative 0 as a Quad, |
| One | The number one as a Quad. |
| Pi | The number pi as a Quad, |
| PiOver | The number pi divided by 2 as a Quad, |
| Positive | Positive infinity as a Quad, |
| Zero | The number zero as a Quad. |