「cpp/numeric/fenv/feenv」の版間の差分
提供: cppreference.com
細 (r2.7.3) (ロボットによる 追加: de, en, es, fr, it, pt, ru, zh) |
細 (Use {{lc}}. Update links. Various fixes.) |
||
2行: | 2行: | ||
{{cpp/title|fegetenv|fesetenv}} | {{cpp/title|fegetenv|fesetenv}} | ||
{{cpp/numeric/fenv/navbar}} | {{cpp/numeric/fenv/navbar}} | ||
− | {{ | + | {{begin}} |
− | {{ | + | {{header | cfenv}} |
− | {{ | + | {{| =c++11 | num=1| |
int fegetenv( std::fenv_t* envp ) | int fegetenv( std::fenv_t* envp ) | ||
}} | }} | ||
− | {{ | + | {{| sincec++11 | num=2| |
int fesetenv( const std::fenv_t* envp ); | int fesetenv( const std::fenv_t* envp ); | ||
}} | }} | ||
− | {{ | + | {{end}} |
1) {{tr|{{tt|envp}}が指すオブジェクトに、浮動小数点環境のステータスを格納しようとします|Attempts to store the status of the floating-point environment in the object pointed to by {{tt|envp}}.}} | 1) {{tr|{{tt|envp}}が指すオブジェクトに、浮動小数点環境のステータスを格納しようとします|Attempts to store the status of the floating-point environment in the object pointed to by {{tt|envp}}.}} | ||
− | 2) {{tr|{{tt|envp}}が指すオブジェクトから浮動小数点環境を確立しようとします。そのオブジェクトの値は、以前{{ | + | 2) {{tr|{{tt|envp}}が指すオブジェクトから浮動小数点環境を確立しようとします。そのオブジェクトの値は、以前{{|std::feholdexcept}}へのコールによって取得または{{tt|std::fegetenv}}または浮動小数点マクロ定数である必要があります。浮動小数点ステータスフラグのいずれかが{{tt|envp}}に設定されている場合、彼らは(実行が中断しない)(そして{{|std::fetestexcept}}によって検証可能である)環境で設定となっているが、対応する浮動小数点例外は発生しません|Attempts to establish the floating-point environment from the object pointed to by {{tt|envp}}. The value of that object must be previously obtained by a call to {{|std::feholdexcept}} or {{tt|std::fegetenv}} or be a floating-point macro constant. If any of the floating-point status flags are set in {{tt|envp}}, they become set in the environment (and are then testable with {{|std::fetestexcept}}), but the corresponding floating-point exceptions are not raised (execution continues uninterrupted)}} |
===パラメータ=== | ===パラメータ=== | ||
− | {{ | + | {{begin}} |
− | {{ | + | {{| envp |{{tr| 浮動小数点環境のステータスを保持するタイプ{{c|std::fenv_t}}のオブジェクトへのポインタ.| pointer to the object of type {{c|std::fenv_t}} which holds the status of the floating-point environment}}}} |
− | {{ | + | {{end}} |
===値を返します=== | ===値を返します=== | ||
25行: | 25行: | ||
===も参照してください=== | ===も参照してください=== | ||
− | {{ | + | {{begin}} |
− | {{ | + | {{| cpp/numeric/fenv/feholdexcept}} |
− | {{ | + | {{| cpp/numeric/fenv/feupdateenv}} |
− | {{ | + | {{| cpp/numeric/fenv/FE_DFL_ENV}} |
− | {{ | + | {{end}} |
[[de:cpp/numeric/fenv/feenv]] | [[de:cpp/numeric/fenv/feenv]] |
2013年7月2日 (火) 14:37時点における版
![]() |
このページは、Google 翻訳を使って英語版から機械翻訳されました。
翻訳には誤りや奇妙な言い回しがあるかもしれません。文章の上にポインタをおくと、元の文章が見れます。誤りを修正して翻訳を改善する手助けをしてください。翻訳についての説明は、ここをクリックしてください。 |
ヘッダ <cfenv> で定義
|
||
int fegetenv( std::fenv_t* envp ) |
(1) | (C++11以上) |
int fesetenv( const std::fenv_t* envp ); |
(2) | (C++11以上) |
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
が指すオブジェクトから浮動小数点環境を確立しようとします。そのオブジェクトの値は、以前std::feholdexceptへのコールによって取得またはstd::fegetenv
または浮動小数点マクロ定数である必要があります。浮動小数点ステータスフラグのいずれかがenvp
に設定されている場合、彼らは(実行が中断しない)(そしてstd::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 std::feholdexcept or std::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 std::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 | - | 浮動小数点環境のステータスを保持するタイプstd::fenv_tのオブジェクトへのポインタ.
Original: pointer to the object of type std::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.
も参照してください
(C++11) |
環境を保存し、すべてのステータスフラグをクリアし、今後のすべてのエラーを無視します (関数) |
(C++11) |
浮動小数点環境を復元し、以前に発生した例外を発生させます (関数) |
(C++11) |
デフォルトの浮動小数点環境 (マクロ定数) |