◐ Shell
clean mode source ↗

std::ios_base::precision — cppreference.com

De cppreference.com

<metanoindex/>

<tbody> </tbody>

streamsize precision() const;

(1)

streamsize precision( streamsize new_precision );

(2)

Gère la précision (c.-à combien de chiffres sont générés) de certaines conversions de sortie numériques .

Original:

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

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

1)

Retourne la précision actuelle .

Original:

Returns the current precision.

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

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_precision -

réglage de précision nouvelle

Original:

new precision setting

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

Retourne la valeur

la précision avant l'appel de la fonction

Original:

the precision before the call to the function

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

Exemple

Voir aussi

manages field width
(fonction membre publique) [edit]