MachineConstants Class

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

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
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

BinaryPrecision Represents the number of bits in the representation of double-precision floating-point numbers.
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.
DecimalPrecision 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.
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.
MaxExponent Represents the largest possible binary exponent in the representation of double-precision floating-point numbers.
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.
MinExponent Represents the smallest possible binary exponent in the representation of double-precision floating-point numbers.
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.
Radix Represents the radix of the representation of double-precision floating-point numbers.
SingleBinaryPrecision Represents the number of bits in the representation of single-precision floating-point numbers.
SingleDecimalPrecision Represents the number of decimal digits of precision in the representation of single-precision floating-point numbers.
SingleEpsilon Represents the machine precision for single-precision floating-point numbers.
SingleMaxExponent Represents the largest possible binary exponent in the representation of single-precision floating-point numbers.
SingleMinExponent Represents the smallest possible binary exponent in the representation of single-precision floating-point numbers.
SingleRadix Represents the radix of the representation of 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.

See Also