10 emulating printf What's an exact equivalent for printf("%01.4f", x) using iostream functions? I'm looking for something along the lines of cout.precision(4); cout << x;.