A float is a data type in computer science that is composed of a number that is not an integer because it includes a fraction represented in decimal format. Some argue that the float data type is used in computer programming when more precision than integers can provide is required.

The term floating point refers to the fact that the radix point (decimal point, or, more commonly in computers, binary point) of a number can “float”; that is, it can be placed anywhere relative to the number’s significant digits. Using this data type we have executed the c program to calculate area of rectangle

```
//c program to calculate area of rectangle
#include<stdio.h>
int main()
{
float length, breadth, area;
printf("Enter length of Rectangle");
scanf("%f", &length);
printf("Enter breadth of Rectangle");
scanf("%f", &breadth);
area = length*breadth;
printf("\nArea = %0.2f", area);
return 0;
}
```

Output:

Enter length of Rectangle

45

Enter breadth of Rectangle

45

Area = 2025.00