feholdexcept

来自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 feholdexcept( fenv_t* envp );
(C99 起)
首先,当前浮点环境保存指向的对象的envpfegetenv),然后清除所有的浮点状态标志,并然后安装非停止模式:未来的浮点异常不会中断执行(不会捕获),直到恢复浮点环境feupdateenvfesetenv.
Original:
First, saves the current floating-point environment to the object pointed to by envp (similar to fegetenv), then clears all floating-point status flags, and then installs the non-stop mode: future floating-point exceptions will not interrupt execution (will not trap), until the floating-point environment is restored by feupdateenv or fesetenv.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
此功能可用于在开始的一个子程序,它必须隐藏的浮点异常,它可能会提高从调用者。如果只有一些例外情况必须被抑制,而其他人必须报告,非停止模式通常是调用feupdateenv结束之后清除不必要的例外.
Original:
This function may be used in the beginning of a subroutine that must hide the floating-point exceptions it may raise from the caller. If only some exceptions must be suppressed, while others must be reported, the non-stop mode is usually ended with a call to feupdateenv after clearing the unwanted exceptions.
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 where the floating-point environment will be stored
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:
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:
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 feholdexcept