Answers for "flaot to int c++ 2 decimals"

C++
0

Setting a number of decimals on a float on C++

cout.setf(ios::fixed);
cout.precision(2);
Posted by: Guest on July-17-2021
0

float to int c++

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

Browse Popular Code Answers by Language