C++ int round code example
Example 1: nearest integer rounding in c++
cout << "Nearest value of x :" << round(x) << "\n";
Example 2: c++ round function
double round(double x);
float round(float x);
long double round(long double x);
double round(T x); // For integral type