Espaços nominais
Variantes
Acções

std::fegetenv, std::fesetenv

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

 
 
Biblioteca numéricos
Funções matemáticas comuns
De ponto flutuante ambiente
Números complexos
Matrizes numéricas
Pseudo-aleatório de geração de números
Tempo de compilação aritmética racional(C++11)
Genéricos operações numéricas
Original:
Generic numeric operations
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(C++11)
 
De ponto flutuante ambiente
Funções
Original:
Functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(C++11)(C++11)
fegetenvfesetenv
(C++11)
Constantes de macros
Original:
Macro constants
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(C++11)
 
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)
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 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.

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

[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]
close