#include <iostream> #include <iomanip> using namespace std; int main() { double d = 122.345; cout << fixed << setprecision(4) << d; }