fegetenv, fesetenv
提供: cppreference.com
![]() |
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
Defined in header <<fenv.h>>
|
||
int fegetenv( fenv_t* envp ); |
(1) | |
int fesetenv( const fenv_t* envp ); |
(2) | |
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.
You can help to correct and verify the translation. Click here for instructions.
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.
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.
You can help to correct and verify the translation. Click here for instructions.
[編集] 例
This section is incomplete Reason: no example |
[編集] も参照してください
(C99) |
環境を保存し、すべてのステータスフラグをクリアし、今後のすべてのエラーを無視します 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. (関数) |
(C99) |
浮動小数点環境を復元し、以前に例外を発生させることが発生します 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. (関数) |
(C99) |
デフォルトの浮動小数点環境 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. (マクロ定数) |
C++ documentation for fegetenv, fesetenv
|