cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
Rounding a Double with Exp form
Rounding a Double with Exp form
Apr 16, 2015 at 7:43pm UTC
DreamTime
(69)
I have code that it outputting doubles in the form of 1.08288e+006.
How do I round the double to only one decimal point eg, 1.1?
Apr 16, 2015 at 7:46pm UTC
Texan40
(645)
look up std::setprecision & std::fixed
Topic archived. No new replies allowed.