fegetenv, fesetenv
Da cppreference.com
![]() |
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
Defined in header <<fenv.h>>
|
||
int fegetenv( fenv_t* envp ); |
(1) | |
int fesetenv( const fenv_t* envp ); |
(2) | |
tenta armazenar o status do ambiente de ponto flutuante no objeto apontado por
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.
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.
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.
You can help to correct and verify the translation. Click here for instructions.
[editar] Exemplo
This section is incomplete Reason: no example |
[editar] Veja também
(C99) |
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) |
(C99) |
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) |
(C99) |
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) |
C++ documentation for fegetenv, fesetenv
|