Espacios de nombres
Variantes
Acciones

std::fegetenv, std::fesetenv

De cppreference.com
< cpp‎ | numeric‎ | fenv
 
 
 
Entorno de punto flotante
Funciones
(C++11)(C++11)
fegetenvfesetenv
(C++11)(C++11)
Constantes de macro
(C++11)
 
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)
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.

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

[editar]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.
You can help to correct and verify the translation. Click here for instructions.

(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.
You can help to correct and verify the translation. Click here for instructions.

(función)[editar]
(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]
close