See Also: Double Members
double is a 64-bit double precision floating-point type that represents values ranging from approximately 5.0E-324 to 1.7E+308 and from approximately -5.0E-324 to -1.7E+308 with a precision of 15-16 decimal digits. The double type conforms to standard IEC 60559:1989, Binary Floating-point Arithmetic for Microprocessor Systems.
A double can represent the following values:
When performing binary operations, if one of the operands is a double, then the other operand is required to be an integral type or a floating-point type (double or float). Prior to performing the operation, if the other operand is not a double, it is converted to double, and the operation is performed using at least double range and precision. If the operation produces a numeric result, the type of the result is double .
The floating-point operators, including the assignment operators, do not throw exceptions. Instead, in exceptional situations, the result of a floating-point operation is zero, infinity, or NaN, as described below:
Conforming implementations of the CLI are permitted to perform floating-point operations using a precision that is higher than that required by the double type. For example, hardware architectures that support an "extended" or "long double" floating-point type with greater range and precision than the double type could implicitly perform all floating-point operations using this higher precision type. Expressions evaluated using a higher precision might cause a finite result to be produced instead of an infinity.