Namensräume
Varianten
Aktionen

std::fegetenv, std::fesetenv

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

 
 
Numerik-Bibliothek
Gemeinsame mathematischen Funktionen
Floating-Point-Umgebung
Komplexe Zahlen
Numerische Arrays
Pseudo-Zufallszahlen
Compile-time rationale Arithmetik (C++11)
Generische numerische Operationen
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
 
Floating-Point-Umgebung
Funktionen
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)
Makro Konstanten
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)
 
Defined in header <cfenv>
int fegetenv( std::fenv_t* envp )
(1) (seit C++11)
int fesetenv( const std::fenv_t* envp );
(2) (seit C++11)
1)
Versuche, den Status der Floating-Point-Umfeld, in das Objekt zu speichern, auf die 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)
Versuche, die Floating-Point-Umgebung aus dem Objekt, auf das envp etablieren. den Wert dieser Objekt muss zuvor durch einen Aufruf zu erhaltenden std::feholdexcept oder std::fegetenv oder ein Floating-Point-Makro konstant. Wenn einer der Floating-Point-Status-Flags in envp gesetzt werden, werden sie in der Umgebung gesetzt (und sind dann prüfbar mit std::fetestexcept) aber die entsprechenden Gleitkomma-Exceptions werden nicht erhoben (Ausführung ohne Unterbrechung fortgesetzt)
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.

[Bearbeiten] Parameter

envp -
Zeiger auf das Objekt vom Typ std::fenv_t die den Status hält der Floating-Point-Umgebung
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.

[Bearbeiten] Rückgabewert

0 bei Erfolg Null sonst .
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.

[Bearbeiten] Siehe auch

schont die Umwelt, löscht alle Status-Flags und ignoriert alle zukünftigen Fehler
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.

(Funktion) [edit]
stellt die Floating-Point-Umgebung und stellt die zuvor Ausnahmen auslösen
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.

(Funktion) [edit]
Standardmäßig Floating-Point-Umgebung
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.

(Makro konstant) [edit]