what is a float in coding code example
Example 1: float in c++
float contains less storage than a double.
float p = 25.0;
double p = 25.0;
Example 2: what is a float in programming
a float is just like an interger in programming
however it has a decimal point
it is used when more presision is needed