std::ios_base::precision
来自cppreference.com
|
|
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
| streamsize precision() const; |
(1) | |
| streamsize precision( streamsize new_precision ); |
(2) | |
管理某些数字输出转换的精度(即有多少位数字生成).
1) 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.
You can help to correct and verify the translation. Click here for instructions.
返回当前的精度.
2) 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.
You can help to correct and verify the translation. Click here for instructions.
设置给定的精度.
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.
You can help to correct and verify the translation. Click here for instructions.
目录 |
[编辑] 参数
| new_precision | - | 新的精度设置
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. |
[编辑] 返回值
之前,调用该函数的精确度
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.
You can help to correct and verify the translation. Click here for instructions.
[编辑] 为例
| 本节是不完整的 原因: no example |
[编辑] 另请参阅
| manages field width (公共成员函数) | |