In C and C++ language, float is a type specifier to define an identifier to be a floating-point datatype. In other words, float is a datatype that is used to hold real numbers in precision, it is used to represent the floating-point numbers. The float data type stored in the bits of bytes in memory.