// file: test.cpp #include #include int main() { float x = 9.999; std::cout << "rounding value: " << x << " --> " << std::round(x); return 0; } // build with: // g++ -o test.o -std=c++17 test.cpp