    C++__________________________________703

cision   precision.        
      ,     -
  .

     ,  
 :

for(int i = 0; i < 10; i++)

outfile  setprecision(i)  sqrt(S.O)  endl;

       setprecision  0  9
            3.
  0      ,  -
 6.     :

1.73205
2

1.7

1.73

1.732

1.7321

1.73205

1.732051

1.7320508

1.73205081

    ,   precision:

for(int i=0; i < 10; i++)
(

outfile.precision(i);

outfile  sqrt(3.0)  endl;

}

   precision   , ,

int i = outfile.precision();

     .

  setw   width    (..
  ,     ,   -
,   )     .  -
    ,    ,   -
     .  
        -
 , ..   .     -
  ,    ,    
     .    
      ;    -
    0, ..      -
   ,  .  width,   -
,     .

     setfill(char)
  fill.

,       
   25:

int j =25;

for(int i = 0; i < 5; i++)

outfile  setw(i)  j  endl;