std::fegetenv, std::fesetenv
De 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. |
Déclaré dans l'en-tête <cfenv>
|
||
int fegetenv( std::fenv_t* envp ) |
(1) | (depuis C++11) |
int fesetenv( const std::fenv_t* envp ); |
(2) | (depuis C++11) |
tente de stocker l'état de l'environnement en virgule flottante dans l'objet pointé par
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.
tentatives pour établir l'environnement en virgule flottante de l'objet pointé par
envp
. La valeur de cette objet doit être préalablement 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 définie dans l'environnement (et sont donc vérifiables avec std::fetestexcept), mais les correspondants exceptions de virgule flottante ne sont pas élevés (exécution 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.
You can help to correct and verify the translation. Click here for instructions.
[modifier] Paramètres
envp | - | Pointeur vers l'objet de std::fenv_t type qui détient 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. |
[modifier] Retourne la valeur
0 en cas de succès, 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.
You can help to correct and verify the translation. Click here for instructions.
[modifier] Voir aussi
(C++11) |
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) |
(C++11) |
restaure l'environnement en virgule flottante et soulève le lever des exceptions précédemment 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) |
(C++11) |
défaut 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) |