C++: How to set presission/decimal places to float numbers


fout << setiosflags(ios::fixed) << setprecision(Digits) << Height << endl;

Where Digits is the number of decimal places.
Height is a float value. 

This post is also available in: Greek

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.