Answers for "how to convert a float to an int in c++"

C++
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 convert a float to an int in c++"

Browse Popular Code Answers by Language