名前空間
変種
操作

FE_DOWNWARD, FE_TONEAREST, FE_TOWARDZERO, FE_UPWARD

提供: cppreference.com
< c‎ | numeric‎ | fenv

Defined in header <<fenv.h>>
#define FE_DOWNWARD     /*implementation defined*/
#define FE_TONEAREST    /*implementation defined*/
#define FE_TOWARDZERO   /*implementation defined*/
#define FE_UPWARD       /*implementation defined*/
これらのマクロ定数はそれぞれ、とfesetroundサポートする浮動小数点丸めモードのいずれかを示すために、私はfegetroundで使用することができます非負整数定数式に展開されます。実装は<fenv.h>が少なくともひとつの大文字が続くとすべて始めるべきFE_で追加丸めモード定数を定義することができます。それがサポートされている場合、それぞれのマクロは、定義されています.
Original:
Each of these macro constants expands to a nonnegative integer constant expression, which can me used with fesetround and fegetround to indicate one of the supported floating-point rounding modes. The implementation may define additional rounding mode constants in <fenv.h>, which should all begin with FE_ followed by at least one uppercase letter. Each macro is only defined if it is supported.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
ほとんどの実装では、これらのマクロ定数はFLT_ROUNDSfloat_round_styleの値に等しい値に展開します
Original:
On most implementations, these macro constants expand to the values equal to the values of FLT_ROUNDS and float_round_style
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
定数
Original:
Constant
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Explanation
FE_DOWNWARD
負の無限大に向かって丸め
Original:
rounding towards negative infinity
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
FE_TONEAREST
最も近い整数に向かって丸め
Original:
rounding towards nearest integer
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
FE_TOWARDZERO
ゼロ方向に丸め
Original:
rounding towards zero
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
FE_UPWARD
正の無限大に向かって丸め
Original:
rounding towards positive infinity
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
追加の丸めモードが実装によってサポートされるかもしれません.
Original:
Additional rounding modes may be supported by an implementation.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[編集]

[編集] も参照してください

丸め方向を取得または設定します
Original:
gets or sets rounding direction
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(機能) [edit]
C++ documentation for floating point rounding macros