Namensräume
Varianten
Aktionen

fegetround, fesetround

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

definiert in Header <<fenv.h>>
int fesetround( int round );
(1)
int fegetround();
(2) (seit C++11)
1)
Versuche, die Floating-Point-Rundung Richtung gleich dem Argument Argument round, die voraussichtlich zu einem der Gleitkomma-Rundung Makros sein wird zu etablieren .
Original:
Attempts to establish the floating-point rounding direction equal to the argument argument round, which is expected to be one of the Gleitkomma-Rundung Makros.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
2)
Gibt den Wert des Gleitkomma-Rundung Makro, die dem aktuellen Rundung Richtung entspricht .
Original:
Returns the value of the Gleitkomma-Rundung Makro that corresponds to the current rounding direction.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Inhaltsverzeichnis

[Bearbeiten] Parameter

round -
Rundung Richtung einer Gleitkomma-Rundung Makros
Original:
rounding direction, one of Gleitkomma-Rundung Makros
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

1)
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.
2)
die Gleitkomma-Rundung Makro die den aktuellen Rundungsrichtung oder einen negativen Wert, wenn die Richtung, nicht ermittelt werden
Original:
the Gleitkomma-Rundung Makro describing the current rounding direction or a negative value if the direction cannot be determined
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[Bearbeiten] Beispiel

[Bearbeiten] Siehe auch

nächste ganze Zahl mit aktuellen Rundung Modus
Original:
nearest integer using current rounding mode
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(Funktion) [edit]
(C99)
(C99)
(C99)
nächste ganze Zahl mit aktuellen Rundung Modus mit
Ausnahme, wenn das Ergebnis unterscheidet
Original:
nearest integer using current rounding mode with
exception if the result differs
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(Funktion) [edit]
C++ documentation for fegetround, fesetround