std::fegetenv, std::fesetenv
De cppreference.com
![]() | Esta página se ha traducido por ordenador/computador/computadora de la versión en inglés de la Wiki usando Google Translate. La traducción puede contener errores y palabras aparatosas/incorrectas. Planea sobre el texto para ver la versión original. Puedes ayudar a corregir los errores y mejorar la traducción. Para instrucciones haz clic aquí. |
Definido en el archivo de encabezado <cfenv> | ||
int fegetenv(std::fenv_t* envp ) | (1) | (desde C++11) |
int fesetenv(conststd::fenv_t* envp ); | (2) | (desde C++11) |
intenta almacenar el estado del entorno de punto flotante en el objeto al que apunta
2) 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.
Los intentos de establecer el entorno de coma flotante del objeto apuntado por
envp
. El valor de esa objeto debe ser obtenido previamente por una llamada a std::feholdexcept o std::fegetenv
o una macro de punto flotante constante. Si cualquiera de los indicadores de estado de coma flotante se encuentra en envp
, ellos se encuentra en el medio ambiente (y luego son contrastables con std::fetestexcept), pero las correspondientes excepciones de punto flotante no resucitan (ejecución continúa sin interrupción)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.
[editar]Parámetros
envp | - | Puntero al objeto de std::fenv_t tipo que tiene la condición de el entorno de coma flotante 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. |
[editar]Valor de retorno
0 en caso de éxito, no cero en caso contrario .
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.
[editar]Ver tambié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) |
(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) |