## Types

Type Number

Namespace MathNet.Numerics

### Public instance methods

#### bool Equals(object obj)

 return bool object obj

#### int GetHashCode()

 return int

#### Type GetType()

 return Type

#### string ToString()

 return string

### Public static methods

#### bool AlmostEqual(double a, double b)

Checks whether two real numbers are almost equal.
 return bool double a The first number double b The second number

#### bool AlmostEqual(Double[] x, Double[] y)

 return bool Double[] x Double[] y

#### bool AlmostEqual(double a, double b, int maxNumbersBetween)

Checks whether two real numbers are almost equal.
 return bool double a The first number double b The second number int maxNumbersBetween The maximum count of numbers between the two numbers plus one ([a,a] -> 0, [a,a+e] -> 1, [a,a+2e] -> 2, ...).

#### bool AlmostEqual(double a, double b, double relativeAccuracy)

Checks whether two real numbers are almost equal.
 return bool double a The first number double b The second number double relativeAccuracy The relative accuracy required for being almost equal.

#### bool AlmostEqual(double a, double b, ulong maxNumbersBetween)

Checks whether two real numbers are almost equal.
 return bool double a The first number double b The second number ulong maxNumbersBetween The maximum count of numbers between the two numbers plus one ([a,a] -> 0, [a,a+e] -> 1, [a,a+2e] -> 2, ...).

#### bool AlmostEqualNorm(double a, double b, double diff)

Checks whether two real numbers are almost equal.
 return bool double a The first number double b The second number double diff The difference of the two numbers according to the Norm

#### bool AlmostEqualNorm(double a, double b, double diff, double relativeAccuracy)

Checks whether two real numbers are almost equal.
 return bool double a The first number double b The second number double diff The difference of the two numbers according to the Norm double relativeAccuracy The relative accuracy required for being almost equal.

#### bool AlmostZero(double a, double absoluteAccuracy)

True if the given number is almost equal to zero, according to the specified absolute accuracy.
 return bool double a double absoluteAccuracy

#### bool AlmostZero(double a)

True if the given number is almost equal to zero.
 return bool double a

#### double Decrement(double value)

Decrements a floating point number to the next smaller number representable by the data type.
The decrementation step length depends on the provided value. Decrement(double.MinValue) will return negative infinity.
 return double double value

#### double EpsilonOf(double value)

Evaluates the minimum distance to the next distinguishable number near the argument value.
Evaluates the epsilon. The more common positive epsilon is equal to two times this negative epsilon.
 return double double value

#### double Increment(double value)

Increments a floating point number to the next bigger number representable by the data type.
The incrementation step length depends on the provided value. Increment(double.MaxValue) will return positive infinity.
 return double double value

#### ulong NumbersBetween(double a, double b)

Evaluates the count of numbers between two double numbers
The second number is included in the number, thus two equal numbers evaluate to zero and two neighbour numbers evaluate to one. Therefore, what is returned is actually the count of numbers between plus 1.
 return ulong double a double b

#### double PositiveEpsilonOf(double value)

Evaluates the minimum distance to the next distinguishable number near the argument value.
 return double double value

#### long SignedMagnitudeToTwosComplementInt64(long value)

Converts an unsigned long integer in two-complement to a long integer in signed-magnitude format format.
 return long long value

#### ulong SignedMagnitudeToTwosComplementUInt64(long value)

Converts a long integer in signed-magnitude format to an unsigned long integer in two-complement format.
 return ulong long value

#### long ToLexicographicalOrderedInt64(double value)

Maps a double to an signed long integer which provides lexicographical ordering.
 return long double value

#### ulong ToLexicographicalOrderedUInt64(double value)

Maps a double to an unsigned long integer which provides lexicographical ordering.
 return ulong double value

### Public fields

#### double RelativeAccuracy

2^(-53)
 return double

#### double PositiveRelativeAccuracy

2^(-52)
 return double

#### double DefaultRelativeAccuracy

10 * 2^(-52)
 return double

#### double SmallestNumberGreaterThanZero

2^(-1074)
 return double