Float Data Types

C offers a variation to float data types, which is double. double occupies 8 bytes in memory, and has a range of values between-1.7e308 to +3.4e38. A double data type uses 64 bits with a precision of 14 bits. Such number are known as double precision numbers.
A double type variable can be declared as:
double a;
double var1;
For even large real number C offers the long double data type. The long double occupies ten bytes in memory and falls in the range between -1.7e4932 to +1.7e4932. Declaring a long double data type yields still higher precision than the double data type.

No comments:

Post a Comment