The Microsoft Input/Output Stream Classes (iostream.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
ios::precision
ios                                         Up Contents Index Back
──The Microsoft iostream Classes────────────────────────────────────────────
 
  int precision( int np );
  int precision() const;
 
  Parameter   Description
 
  <np>        An integer that indicates the number of significant digits
              or significant decimal digits to be used for floating-point
              display.
 
  Remarks
 
  The first overloaded precision function sets the stream's internal
  floating-point precision variable to <np> and returns the previous
  value. The default precision is six digits. If the display format is
  scientific or fixed, then the precision indicates the number of digits
  after the decimal point. If the format is automatic (neither floating
  point nor fixed), then the precision indicates the total number of
  significant digits.
 
  The second function returns the stream's current precision value.
 
  See Also
 
  ios setprecision manipulator
 
 
                                     -♦-