|
|
#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( ).
|
|