Espaços nominais
Variantes
Acções

fegetenv, fesetenv

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

Defined in header <<fenv.h>>
int fegetenv( fenv_t* envp );
(1)
int fesetenv( const fenv_t* envp );
(2)
1)
tenta armazenar o status do ambiente de ponto flutuante no objeto apontado por 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)
tentativas para estabelecer o ambiente de ponto flutuante do objeto apontado por envp. O valor de que objeto deve ser obtido previamente por uma chamada para feholdexcept ou fegetenv ou ser um macro de ponto flutuante constante. Se alguma das bandeiras de ponto flutuante de status são definidos em envp, eles ficam no meio ambiente (e são, então, testáveis ​​com fetestexcept), mas os correspondentes exceções de ponto flutuante não são levantadas (execução continua ininterrupta)
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.

Índice

[editar] Parâmetros

envp -
Ponteiro para o objeto de fenv_t tipo que detém o status de o ambiente de ponto flutuante
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 em caso de sucesso, não-zero, caso contrário.
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] Exemplo

[editar] Veja também

poupa o meio ambiente, limpa todos os sinalizadores de status e ignora todos os erros futuros
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.

(função) [edit]
restaura o ambiente de ponto flutuante e levanta a anteriormente levantar exceções
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.

(função) [edit]
ambiente padrão de ponto flutuante
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