◐ Shell
clean mode source ↗

std::ios_base::width – cppreference.com

Aus 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)

Setzt die Genauigkeit der gegebenen ein .

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.

Parameter

new_width - new field width setting

Rückgabewert

the field width before the call to the function

Beispiel

Siehe auch

verwaltet Nachkommastellen von Fließkomma-Operationen

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.


(öffentliche Elementfunktion) [edit]