Espacios de nombres
Variantes
Acciones

fegetenv, fesetenv

De cppreference.com
< c‎ | numeric‎ | fenv

Defined in header <<fenv.h>>
int fegetenv( fenv_t* envp );
(1)
int fesetenv( const fenv_t* envp );
(2)
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 feholdexcept o 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 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 feholdexcept or 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 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.

Contenido

[editar] Parámetros

envp -
Puntero al objeto de fenv_t tipo que tiene la condición de el entorno de coma flotante
Original:
pointer to the object of type 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] Ejemplo

[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) [edit]
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) [edit]
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.

(macro constante) [edit]
C++ documentation for fegetenv, fesetenv