Floating point variables in turbo c
Â
Floating point variables in turbo c
Float can store four bytes.It is used to store floating type variables by floating we mean they must contain decimal numbers.So the 5.0 is a floating point number while 5 is integer.
Floating point variables:
In c++ to store decimal numbers data type float is used which can store four bytes,By the term floating point variables we mean the variable storing the decimal value.
For Example:
float   variable =1.05;
The table below can give you more clear concept of float.
Data type         Bytes     Decimal places   Range  of values
float              4             6         3.4E -38 to3.4E+38
double            8             15         1.7E – 308 to1.7E +308
long double        10            19         3.4E -4932 to 304E +4932
Â