名前空間
変種
操作

fegetenv, fesetenv

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

Defined in header <<fenv.h>>
int fegetenv( fenv_t* envp );
(1)
int fesetenv( const fenv_t* envp );
(2)
1)
envpが指すオブジェクトに、浮動小数点環境のステータスを格納しようとします
Original:
Attempts to store the status of the floating-point environment in the object pointed to by envp.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
2)
envpが指すオブジェクトから浮動小数点環境を確立しようとします。そのオブジェクトの値は、以前feholdexceptへのコールによって取得またはfegetenvまたは浮動小数点マクロ定数である必要があります。浮動小数点ステータスフラグのいずれかがenvpに設定されている場合、彼らは(実行が中断しない)(そしてfetestexceptによって検証可能である)環境で設定となっているが、対応する浮動小数点例外は発生しません
Original:
Attempts to establish the floating-point environment from the object pointed to by envp. The value of that object must be previously obtained by a call to feholdexcept or fegetenv or be a floating-point macro constant. If any of the floating-point status flags are set in envp, they become set in the environment (and are then testable with fetestexcept), but the corresponding floating-point exceptions are not raised (execution continues uninterrupted)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

目次

[編集] パラメータ

envp -
浮動小数点環境のステータスを保持するタイプfenv_tのオブジェクトへのポインタ.
Original:
pointer to the object of type fenv_t which holds the status of the floating-point environment
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[編集] 値を返します

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.

[編集]

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

環境を保存し、すべてのステータスフラグをクリアし、今後のすべてのエラーを無視します
Original:
saves the environment, clears all status flags and ignores all future errors
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(機能) [edit]
浮動小数点環境を復元し、以前に例外を発生させることが発生します
Original:
restores the floating-point environment and raises the previously raise exceptions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(機能) [edit]
デフォルトの浮動小数点環境
Original:
default floating-point environment
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 fegetenv, fesetenv