The C language provides two data types to deal with real numbers (numbers with decimal points e.g. 1.35, 253.235). The real numbers are also known as floating point numbers
Float
Double
Float Data Type
To store numbers, float data type is used. The float data type uses four bytes to store a real number
Double Data Type
If we need to store a large real number which cannot be store in four bytes, then we use Double data type. Normally the size of double is twice the size of float. In Double x = 3264664.548797
No comments:
Post a Comment