round double c++ code example
Example 1: round C
float f = 0.5;
round(f);
Example 2: nearest integer rounding in c++
cout << "Nearest value of x :" << round(x) << "\n";
float f = 0.5;
round(f);
cout << "Nearest value of x :" << round(x) << "\n";