Machine Constants Class
Contains constants related to the specific implementation
of floating-point arithmetic in the .NET framework and
the Common Language Runtime.
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
C#
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
public static class MachineConstants
- Inheritance
- Object → MachineConstants
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.
Fields
Binary | Represents the number of bits in the representation of double-precision floating-point numbers. |
Cube | Represents the cube root of the machine precision Epsilon for double-precision floating-point numbers. |
Cube | Represents the cube root of the machine precision SingleEpsilon for single-precision floating-point numbers. |
Decimal | Represents the number of decimal digits of precision in the representation of double-precision floating-point numbers. |
Epsilon | Represents the machine precision for double-precision floating-point numbers. |
Log | Represents the natural logarithm of MaxDouble. |
Log | Represents the natural logarithm of MaxSingle. |
Log | Represents the natural logarithm of MinDouble. |
Log | Represents the natural logarithm of MinSingle. |
Max | Represents the largest possible value of a double-precision floating-point number. |
Max | Represents the largest possible binary exponent in the representation of double-precision floating-point numbers. |
Max | Represents the largest possible value of a single-precision floating-point number. |
Min | Represents the smallest double-precision floating-point number that is greater than zero. |
Min | Represents the smallest possible binary exponent in the representation of double-precision floating-point numbers. |
Min | Represents the smallest normalized double-precision floating-point number that is greater than zero. |
Min | Represents the smallest normalized single-precision floating-point number that is greater than zero. |
Min | Represents the smallest single-precision floating-point number that is greater than zero. |
Radix | Represents the radix of the representation of double-precision floating-point numbers. |
Single | Represents the number of bits in the representation of single-precision floating-point numbers. |
Single | Represents the number of decimal digits of precision in the representation of single-precision floating-point numbers. |
Single | Represents the machine precision for single-precision floating-point numbers. |
Single | Represents the largest possible binary exponent in the representation of single-precision floating-point numbers. |
Single | Represents the smallest possible binary exponent in the representation of single-precision floating-point numbers. |
Single | Represents the radix of the representation of single-precision floating-point numbers. |
Sqrt | Represents the square root of the machine precision Epsilon for double-precision floating-point numbers. |
Sqrt | Represents the square root of MaxDouble. |
Sqrt | Represents the square root of MaxSingle. |
Sqrt | Represents the square root of MinDouble. |
Sqrt | Represents the square root of MinSingle. |
Sqrt | Represents the square root of the machine precision SingleEpsilon for single-precision floating point numbers. |