c++ what is a float code example Example: float in c++ float contains less storage than a double. float p = 25.0; double p = 25.0;