std::fegetenv, std::fesetenv - cppreference.com
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 |
||
|
|
(1) | (desde C++11) |
|
|
(2) | (desde C++11) |
1)
intenta almacenar el estado del entorno de punto flotante en el objeto al que apunta 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)
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.
Parámetros
| envp | - | Puntero al objeto de Original: pointer to the object of type The text has been machine-translated via Google Translate. |
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.
Ver también
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. (función) [editar] | |
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. (función) [editar] | |
defecto de punto flotante de medio ambiente Original: default floating-point environment The text has been machine-translated via Google Translate. (constante de macro) [editar] |