//example of how to use setprecision #include #include using namespace std; int main() { double x = 122.45678; cout<