std::fegetenv, std::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. |
Definido no cabeçalho <cfenv> | ||
int fegetenv( std::fenv_t* envp ) | (1) | (desde C++11) |
int fesetenv(const std::fenv_t* envp ); | (2) | (desde C++11) |
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 std::feholdexcept ou std::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 std::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 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.
You can help to correct and verify the translation. Click here for instructions.
[editar]Parâmetros
envp | - | Ponteiro para o objeto de std::fenv_t tipo que detém o status de o ambiente de ponto flutuante 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 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]Veja também
(C++11) | 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) |
(C++11) | 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) |
(C++11) | 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) |