◄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► -♦-