Namespaces
Variants
Views
Actions

std::ios_base::precision

From cppreference.com
< cpp‎ | io‎ | ios base
Revision as of 22:03, 31 May 2013 by P12bot (Talk | contribs)

streamsize precision() const;
(1)
streamsize precision( streamsize new_precision );
(2)

Manages the precision (i.e. how many digits are generated) of certain numeric output conversions.

1) Returns the current precision.

2) Sets the precision to the given one.

Contents

Parameters

new_precision - new precision setting

Return value

the precision before the call to the function

Example

See also

manages field width
(public member function) [edit]