Namespaces
Variants

std:: float_round_style

From cppreference.net
Utilities library
定義先ヘッダ <limits>
enum float_round_style {

round_indeterminate = - 1 ,
round_toward_zero = 0 ,
round_to_nearest = 1 ,
round_toward_infinity = 2 ,
round_toward_neg_infinity = 3

} ;

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)