cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
data accuracy specification in C++
data accuracy specification in C++
May 20, 2011 at 10:08pm UTC
xephon
(42)
Hi all,
I'm wondering what's the equivalent for C++ for the following situation?
printf("%.3f\t", f_num);
I've never thought of it, thus have never dug into this... and I just need it right now...
anyone?
Thanks
May 20, 2011 at 10:47pm UTC
Disch
(13742)
cout << setprecision(3) << f_num <<
'\t'
;
http://cplusplus.com/reference/iostream/manipulators/
Topic archived. No new replies allowed.