Answers for "how to distinguish between float and integer in c++"

C++
1

float in c++

float contains less storage than a double. 
float p = 25.0;
double p = 25.0;
Posted by: Guest on July-06-2020
0

float to int c++

float var_a = 9.99;
int   var_b = (int)var_a;
Posted by: Guest on December-26-2021

Code answers related to "how to distinguish between float and integer in c++"

Browse Popular Code Answers by Language