(C++) std::fixed std::fixed is a stream manipulator to set the number of digits after the comma to a fixed number. #include <iostream> int main() { std::cout << (1.0) << '\n' << std::fixed << (1.0) << '\n'; } Examples std::setprecision example 1: displaying a certain number of digits behind the comma