Archivo de encabezado de la biblioteca estándar <cfenv>
De cppreference.com
Este archivo de encabezado se encontraba originalmente en la biblioteca estándar de C como <fenv.h>
.
Esta cabecera es parte de la librería floating-point environment.
Contenido |
[editar] Tipos
fenv_t | El tipo que representa todo el entorno de coma flotante |
fexcept_t | El tipo que representa todas las banderas de estado de los cálculos en coma flotante |
[editar] Funciones
(C++11) |
borra los especificados en coma flotante indicadores de estado Original: clears the specified floating-point status flags The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función) |
(C++11) |
determina cuál de los indicadores de estado de punto flotante especificado se establecen Original: determines which of the specified floating-point status flags are set The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función) |
(C++11) |
eleva los especificados excepciones de punto flotante Original: raises the specified floating-point exceptions The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función) |
(C++11)(C++11) |
copia el estado de los indicadores de estado de punto flotante especificado desde o hacia el entorno de punto flotante Original: copies the state of the specified floating-point status flags from or to 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. (función) |
(C++11)(C++11) |
Obtiene o establece la dirección redondeo (función) |
(C++11) |
guarda o restaura el entorno actual de punto flotante 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. (función) |
(C++11) |
protege el medio ambiente, se borran todos los indicadores de estado y hace caso omiso de todos los errores en el futuro 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. (función) |
(C++11) |
restaura el entorno de coma flotante y plantea la anteriormente lanzar excepciones 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. (función) |
[editar] Macros
excepciones de punto flotante Original: floating-point exceptions The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante de macro) | |
de punto flotante de redondeo dirección Original: floating-point rounding direction The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante de macro) | |
(C++11) |
defecto de punto flotante de medio ambiente 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. (constante de macro) |
[editar] Synopsis
namespace std { // tipos typedef /*object type*/ fenv_t; typedef /*integer type*/ fexcept_t; // funciones int feclearexcept(int except); int fegetexceptflag(fexcept_t *pflag, int except); int feraiseexcept(int except); int fesetexceptflag(const fexcept_t *pflag, int except); int fetestexcept(int except); int fegetround(void); int fesetround(int mode); int fegetenv(fenv_t *penv); int feholdexcept(fenv_t *penv); int fesetenv(const fenv_t *penv); int feupdateenv(const fenv_t *penv); }