Contains constants related to the specific implementation of floating point arithmetic in the .NET framework and the Common Language Runtime.

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (Extreme.Numerics)

Syntax

Visual Basic (Declaration)
Public NotInheritable Class MachineConstants
C#
public sealed class MachineConstants
C++
public ref class MachineConstants sealed

Methods

IconTypeDescription
Equals(Object)
Determines whether the specified Object is equal to the current Object.
Finalize()
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
GetHashCode()
Serves as a hash function for a particular type.
GetType()
Gets the Type of the current instance.
MemberwiseClone()
Creates a shallow copy of the current Object.
ToString()
Returns a String that represents the current Object.

Fields

IconTypeDescription
static memberCubeRootEpsilon
Represents the cube root of the machine precision Epsilon for double-precision floating point numbers.
static memberCubeRootSingleEpsilon
Represents the cube root of the machine precision SingleEpsilon for single-precision floating point numbers.
static memberEpsilon
Represents the machine precision for double-precision floating point numbers.
static memberLogMaxDouble
Represents the natural logarithm of MaxDouble.
static memberLogMaxSingle
Represents the natural logarithm of MaxSingle.
static memberLogMinDouble
Represents the natural logarithm of MinDouble.
static memberLogMinSingle
Represents the natural logarithm of MinSingle.
static memberMaxDouble
Represents the largest possible value of a double-precision floating point number.
static memberMaxSingle
Represents the largest possible value of a single-precision floating point number.
static memberMinDouble
Represents the smallest double-precision floating point number that is greater than zero.
static memberMinNormalizedDouble
Represents the smallest normalized double-precision floating point number that is greater than zero.
static memberMinNormalizedSingle
Represents the smallest normalized single-precision floating point number that is greater than zero.
static memberMinSingle
Represents the smallest single-precision floating point number that is greater than zero.
static memberSingleEpsilon
Represents the machine precision for single-precision floating point numbers.
static memberSqrtEpsilon
Represents the square root of the machine precision Epsilon for double-precision floating point numbers.
static memberSqrtMaxDouble
Represents the square root of MaxDouble.
static memberSqrtMaxSingle
Represents the square root of MaxSingle.
static memberSqrtMinDouble
Represents the square root of MinDouble.
static memberSqrtMinSingle
Represents the square root of MinSingle.
static memberSqrtSingleEpsilon
Represents the square root of the machine precision SingleEpsilon for single-precision floating point numbers.

Remarks

The Single and Double floating-point types in the Common Language Specification follow the IEEE-754 standard for single and double-precision floating-point numbers.

Any number representation is necessarily limited. This class provides constants that specify these limits for the CLS' floating-point types.

Many of these constants are also available in the Single and Double classes. Unfortunately, these definitions do not follow the standard conventions.

Inheritance Hierarchy

System.Object
  Extreme.Mathematics.MachineConstants