(C++) std::setprecision std::setprecision is a stream manipulator to set the precion in displaying a floating point number. Examples std::setprecision example 1: displaying a certain number of digits behind the comma