名前空間
変種
操作

std::fegetenv, std::fesetenv

提供: cppreference.com
< cpp‎ | numeric‎ | fenv
2012年11月2日 (金) 23:35時点におけるP12bot (トーク | 投稿記録)による版

 
 
 
浮動小数点環境
関数
(C++11)(C++11)
fegetenvfesetenv
(C++11)(C++11)
マクロ定数
(C++11)
 
Defined in header <cfenv>
int fegetenv( std::fenv_t* envp )
(1) (C++11以上)
int fesetenv( const std::fenv_t* envp );
(2) (C++11以上)
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が指すオブジェクトから浮動小数点環境を確立しようとします。そのオブジェクトの値は、以前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.

パラメータ

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.

も参照してください

テンプレート:cpp/numeric/fenv/dcl list feholdexceptテンプレート:cpp/numeric/fenv/dcl list feupdateenvテンプレート:cpp/numeric/fenv/dcl list FE DFL ENV