feupdatedenv

来自cppreference.com
< c | numeric | fenv

 
 
 
浮点环境
功能
Original:
Functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
feclearexcept(C99)
fetestexcept(C99)
feraiseexcept(C99)
fegetexceptflag
fesetexceptflag
(C99)
(C99)
fegetround
fesetround
(C99)
(C99)
fegetenv
fesetenv
(C99)
feholdexcept(C99)
feupdateenv(C99)
宏常量
Original:
Macro constants
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
FE_ALL_EXCEPT
FE_DIVBYZERO
FE_INEXACT
FE_INVALID
FE_OVERFLOW
FE_UNDERFLOW
(C99)
FE_DOWNWARD
FE_TONEAREST
FE_TOWARDZERO
FE_UPWARD
(C99)
FE_DFL_ENV(C99)
 
Defined in header <<fenv.h>>
int feupdateenv( const fenv_t* envp );
(C99 起)
首先,记住目前提出的浮点异常,然后恢复浮点环境的对象所指向的envpfesetenv类似),然后引发浮点异常,保存.
Original:
First, remembers the currently raised floating-point exceptions, then restores the floating-point environment from the object pointed to by envp (similar to fesetenv), then raises the floating-point exceptions that were saved.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
此功能可用于结束的非停止模式建立的先前调用feholdexcept.
Original:
This function may be used to end the non-stop mode established by an earlier call to feholdexcept.
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以前调用feholdexceptfegetenv或等于FE_DFL_ENV
Original:
pointer to the object of type fenv_t set by an earlier call to feholdexcept or fegetenv or equal to FE_DFL_ENV
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.

[编辑] 为例

[编辑] 另请参阅

(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.

(函数) [edit]
保存或恢复当前浮点环境
Original:
saves or restores the current 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]
(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.

(宏不变) [edit]
C++ documentation for feupdateenv