Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- double f =1233.14159;
- std::cout << std::setprecision(5) << f << '\n';
- std::cout << std::setprecision(9) << f << '\n';
- std::cout << std::fixed;
- std::cout << std::setprecision(5) << f << '\n';
- std::cout << std::setprecision(9) << f << '\n'
Advertisement
Add Comment
Please, Sign In to add comment