[ Web Proxy ]
URL:
Viewing: https://fr.cppreference.com/cpp/numeric/fenv/feenv [Back]  [Original]

std::fegetenv, std::fesetenv cppreference.com
cppreference.com
Espaces de noms
Variantes

std::fegetenv, std::fesetenv

De cppreference.com

<metanoindex/>

 
 
Bibliothque Numerics
Fonctions mathmatiques courantes
Virgule flottante environnement
Nombres complexes
Tableaux numriques
La gnration de nombres pseudo-alatoires
Moment de la compilation arithmtique rationnelle (C++11)
Gnriques des oprations numriques
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.
iota (C++11)
accumulate
inner_product
adjacent_difference
partial_sum
 
Virgule flottante environnement
Fonctions
Original:
Functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
feclearexcept (C++11)
fetestexcept (C++11)
feraiseexcept (C++11)
fegetexceptflag
fesetexceptflag
(C++11)
(C++11)
fegetround
fesetround
(C++11)
(C++11)
fegetenv
fesetenv
(C++11)
feholdexcept (C++11)
feupdateenv (C++11)
Macro constantes
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.
FE_ALL_EXCEPT
FE_DIVBYZERO
FE_INEXACT
FE_INVALID
FE_OVERFLOW
FE_UNDERFLOW
(C++11)
FE_DOWNWARD
FE_TONEAREST
FE_TOWARDZERO
FE_UPWARD
(C++11)
FE_DFL_ENV (C++11)
 
<tbody> </tbody>
Dclar dans l'en-tte <cfenv>
int fegetenv( std::fenv_t* envp )
(1) (depuis C++11)
int fesetenv( const std::fenv_t* envp );
(2) (depuis C++11)

1)

tente de stocker l'tat de l'environnement en virgule flottante dans l'objet point par 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)

tentatives pour tablir l'environnement en virgule flottante de l'objet point par envp. La valeur de cette objet doit tre pralablement obtenue par un appel std::feholdexcept ou std::fegetenv ou une macro virgule flottante constante. Si l'un des indicateurs d'tat virgule flottante sont mis en envp, ils deviennent dfinie dans l'environnement (et sont donc vrifiables avec std::fetestexcept), mais les correspondants exceptions de virgule flottante ne sont pas levs (excution se poursuit sans interruption)
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.

Paramtres

envp -
Pointeur vers l'objet de std::fenv_t type qui dtient le statut de l'environnement en virgule flottante
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.

Retourne la valeur

0 en cas de succs, non nuls autrement .
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.

Voir aussi

sauvegarde de l'environnement, efface tous les indicateurs d'tat et ignore toutes les erreurs futures
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.

(fonction) [edit]
(C++11)
restaure l'environnement en virgule flottante et soulve le lever des exceptions prcdemment
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.

(fonction) [edit]
(C++11)
dfaut en virgule flottante environnement
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.

(constante macro) [edit]

Web Proxy Viewer  |  New URL  |  Original Page