Check out example codes for "float in c++". It will help you in understanding the concepts better.

Code Example 1

float contains less storage than a double. 
float p = 25.0;
double p = 25.0;

Learn ReactJs, React Native from akashmittal.com