std:: float_round_style
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Basic types | |||||||||||||||||||||
| Fixed width integer types (C++11) | |||||||||||||||||||||
| Fixed width floating-point types (C++23) | |||||||||||||||||||||
|
|||||||||||||||||||||
| Numeric limits | |||||||||||||||||||||
| C numeric limits interface | |||||||||||||||||||||
| Runtime type information | |||||||||||||||||||||
|
|||||||||||||||||||||
| Static constants | ||||
|
(C++11)
|
||||
| Static member functions | ||||
|
(C++11)
|
||||
| Helper types | ||||
|
float_round_style
|
||||
|
定義先ヘッダ
<limits>
|
||
|
enum
float_round_style
{
round_indeterminate
=
-
1
,
|
||
std::float_round_style
型の列挙定数は、浮動小数点演算において式の結果が浮動小数点型のオブジェクトに格納される際に使用される丸め方式を示します。
列挙定数
| 列挙子 | 意味 |
| std::round_indeterminate | 丸めスタイルが特定できない |
| std::round_toward_zero | ゼロ方向への丸め |
| std::round_to_nearest | 最も近い表現可能な値への丸め |
| std::round_toward_infinity | 正の無限大方向への丸め |
| std::round_toward_neg_infinity | 負の無限大方向への丸め |
関連項目
|
[static]
|
型が使用する丸めスタイルを識別する
(public static member constant) |
|
浮動小数点丸め方向
(macro constant) |