名前空間
変種
操作

fegetround, fesetround

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

Defined in header <<fenv.h>>
int fesetround( int round );
(1)
int fegetround();
(2) (C + + 11以来)
1)
roundの一つとして期待されている引数の引数浮動小数点の丸めのマクロに等しい浮動小数点の丸め方向を確立しようと.
Original:
Attempts to establish the floating-point rounding direction equal to the argument argument round, which is expected to be one of the 浮動小数点の丸めのマクロ.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
2)
現在の丸め方向に対応浮動小数点の丸めのマクロの値を返します。.
Original:
Returns the value of the 浮動小数点の丸めのマクロ that corresponds to the current rounding direction.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

目次

[編集] パラメータ

round -
丸め方向、浮動小数点の丸めのマクロの一つ
Original:
rounding direction, one of 浮動小数点の丸めのマクロ
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[編集] 値を返します

1)
0成功した場合には、ゼロ以外のその他のとき.
Original:
0 on success, non-zero otherwise.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
2)
方向が決定できない場合浮動小数点の丸めのマクロは、現在の丸め方向または負の値を記述する
Original:
the 浮動小数点の丸めのマクロ describing the current rounding direction or a negative value if the direction cannot be determined
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[編集]

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

現在の丸めモードを使用して、最も近い整数
Original:
nearest integer using current rounding mode
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(機能) [edit]
(C99)
(C99)
(C99)
結果が異なる場合
を除いて、現在の丸めモードを使用して、最も近い整数
Original:
nearest integer using current rounding mode with
exception if the result differs
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 fegetround, fesetround