Thread
:
a way to set decimal points limit?
View Single Post
10-24-2004, 01:16 PM
#
2
(
permalink
)
Valmont
[code][/code] enforcer
Join Date: Mar 2003
Location: Netherlands
Posts: 1,544
What do you mean it limits the whole number?
How is the number in the code below limited by setprecision then?
Code:
double
f; f=4456789123.123456; cout.setf(ios::fixed); cout << setprecision(2) << f << endl;
__________________
Valmont
View Public Profile
Find More Posts by Valmont