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
| Icon | Type | Description |
|---|---|---|
| Equals(Object) | ||
| Finalize() | ||
| 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() |
Fields
| Icon | Type | Description |
|---|---|---|
| CubeRootEpsilon |
Represents the cube root of the machine precision
Epsilon for double-precision
floating point numbers.
| |
| CubeRootSingleEpsilon |
Represents the cube root of the machine precision
SingleEpsilon for single-precision
floating point numbers.
| |
| Epsilon |
Represents the machine precision for double-precision
floating point numbers.
| |
| LogMaxDouble |
Represents the natural logarithm of MaxDouble.
| |
| LogMaxSingle |
Represents the natural logarithm of MaxSingle.
| |
| LogMinDouble |
Represents the natural logarithm of MinDouble.
| |
| LogMinSingle |
Represents the natural logarithm of MinSingle.
| |
| MaxDouble |
Represents the largest possible value of a
double-precision floating point number.
| |
| MaxSingle |
Represents the largest possible value of a
single-precision floating point number.
| |
| MinDouble |
Represents the smallest double-precision floating point
number that is greater than zero.
| |
| MinNormalizedDouble |
Represents the smallest normalized double-precision floating point
number that is greater than zero.
| |
| MinNormalizedSingle |
Represents the smallest normalized single-precision floating point
number that is greater than zero.
| |
| MinSingle |
Represents the smallest single-precision floating point
number that is greater than zero.
| |
| SingleEpsilon |
Represents the machine precision for single-precision
floating point numbers.
| |
| SqrtEpsilon |
Represents the square root of the machine precision
Epsilon for double-precision
floating point numbers.
| |
| SqrtMaxDouble |
Represents the square root of MaxDouble.
| |
| SqrtMaxSingle |
Represents the square root of MaxSingle.
| |
| SqrtMinDouble |
Represents the square root of MinDouble.
| |
| SqrtMinSingle |
Represents the square root of MinSingle.
| |
| SqrtSingleEpsilon |
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.