View Single Post
Old 10-24-2004, 01:16 PM   #2 (permalink)
Valmont
[code][/code] enforcer
 
Valmont's Avatar
 
Join Date: Mar 2003
Location: Netherlands
Posts: 1,544
Valmont is on a distinguished road
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 is offline   Reply With Quote