﻿DoubleDouble Structure

# DoubleDouble Structure

Represents a floating point number with quadruple precision.

Namespace:  Meta.Numerics.Extended
Assembly:  Meta.Numerics (in Meta.Numerics.dll) Version: 4.0.5.0 (4.0.5.0)
Syntax
```public struct DoubleDouble : IEquatable<DoubleDouble>,
IComparable<DoubleDouble>```

The DoubleDouble type exposes the following members.

Constructors
NameDescription
DoubleDouble
Initializes a new double double number from the given string.
Top
Methods
NameDescription
Abs
Computes the absolute value of a double double number.
CompareTo
Compares the current value to another.
Equals(Object)
Determines whether the current value is equal to another object.
(Overrides ValueTypeEquals(Object).)
Equals(DoubleDouble)
Determines whether the current value is equal to another value.
Exp
Computes the exponential of a double double value.
GetHashCode
Gets a hash code for the current value.
(Overrides ValueTypeGetHashCode.)
GetRandomValue
Gets a random double double value.
GetType
Gets the Type of the current instance.
(Inherited from Object.)
Log
Computes the natural logarithm of a double double value.
Parse
Parses a string representation of a double double value.
Pow
Raises a double double number to an integer power.
Sqrt
Computes the square root of a double double value.
ToString
Writes a string representation of the value.
(Overrides ValueTypeToString.)
Top
Operators
NameDescription
Computes the sum of two double double numbers.
Division
Computes the quotient of two double double numbers.
Equality
Determines whether two double double values are equal.
(DoubleDouble to Double)
Converts a double double value to a double value.
GreaterThan
Determines whether the first value is greater than the second value.
GreaterThanOrEqual
Determines whether the first value is greater than or equal to the second value.
(Double to DoubleDouble)
Converts a double value to a double double value.
Inequality
Determines whether two double double values are unequal.
LessThan
Determines whether the first value is less than the second value.
LessThanOrEqual
Determines whether the first value is less than or equal to the second value.
Multiply
Computes the product of two double double numbers.
Subtraction
Computes the difference of two double double numbers.
UnaryNegation
Negates a double double number.
Top
Fields
NameDescription
E
The double double vale of the base of natural logarithms.
One
The double double number one.
Pi
The double double value of pi.
Zero
The double double number zero.
Top
Remarks

The double double format uses two Double values to effectively double the precision with which a number can be stored and manipulated as compared to to the Double structure, i.e. to approximately 31 decimal digits of accuracy.

Of all the extended precision floating point systems, double double is the fastest when implemented in software. A typical floating point operation on double doubles is just 3-4 times slower than on Doubles.