◐ Shell
clean mode source ↗

std::ios_base::width — cppreference.com

De cppreference.com

<metanoindex/>

<tbody> </tbody>

streamsize width() const;

(1)

streamsize width( streamsize new_width );

(2)

Manages the minimum number of characters to generate on certain output conversions.

1) Returns the current field width.

2)

Définit la précision de la donnée .

Original:

Sets the precision to the given one.

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Paramètres

new_width - new field width setting

Retourne la valeur

the field width before the call to the function

Exemple

Voir aussi

gère précision décimale des opérations en virgule flottante

Original:

manages decimal precision of floating point operations

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.


(fonction membre publique) [edit]