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
Decimals - please help
Decimals - please help
Dec 1, 2013 at 11:38am UTC
icanbe23
(7)
I have to create a converter but the results must be in 4 decimal places just like, if i Entered 5000mm the result would be 500.0000cm . what should I do ? I used Float function
Last edited on
Dec 1, 2013 at 11:42am UTC
Dec 1, 2013 at 2:02pm UTC
codewalker
(394)
1
2
double
cm = mms/mmInCms; cout << setprecision(4) << cm;
Topic archived. No new replies allowed.