If double b is 0.0000001, then cout << b displays 1e - 07. How to make cout display exactly the decimal fraction in its entirety?
#include <iomanip> ... double a = 0.0000001; cout << setprecision(9) << a;
Source: https://ru.stackoverflow.com/questions/541483/
All Articles
#include <iomanip>cout << setprecision (15) << b;- pavelsetprecision(8), but output is stable 1e-07 - Ka_ktuscout.setf(ios::fixed);flag set. Something I thought that he himself exhibited. - pavel