
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Microsoft C - <b>double double-precision floating-point data type</b>
[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
double Double-Precision Floating-Point Data Type
The double type declares an object to be of "double-precision"
floating-point type. The size (and representation) of a double
object is implementation-defined. A double is the same or greater in
size than a float.
Notes: In MS-C, the size of a double object is eight bytes. The
IEEE representation consisting of a sign bit, an 11-bit
excess 1023 binary exponent, and a 52-bit mantissa is
used. The mantissa represents a number between 1.0 and
2.0, and since the high-order bit of the mantissa is
always 1, it is not stored in the number. The range of
values is approximately 1.7E-308 to 1.7E+308.
All floating-point constants have type double. There is
no way to specify a float constant.
The decision between using double and float is one of
space versus run-time conversion cost.
The type long float is a synonym for the type double. It
has nothing to do with the float type.
-------------------------------- Example ---------------------------------
double value = 1.234;
double d1 = 1.234E-24;
value = (double) 123;
See Also: float long
Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson