how can i round a number in excel 2.81081 to 2.822 in c++ code example Example: nearest integer rounding in c++ cout << "Nearest value of x :" << round(x) << "\n";