#include <iostream.h>int precision() const;int precision(int p);

The precision( ) function is a member of ios.

By default, six digits of precision are displayed after the decimal point when floating-point values are output. However, using the second form of precision( ), you can set this number to the value specified in p. The original value is returned.

The first version of precision( ) returns the current value.

Related functions are width( ) and fill( ).

C(s)C++ Programmer's Reference
C Programming on the IBM PC (C Programmers Reference Guide Series)
ISBN: 0673462897
EAN: 2147483647
Year: 2002
Pages: 539

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net