float


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. 

Advertisements