Espaces de noms
Variantes
Affichages
Actions

FE_DOWNWARD, FE_TONEAREST, FE_TOWARDZERO, FE_UPWARD

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

Defined in header <<fenv.h>>
#define FE_DOWNWARD     /*implementation defined*/
#define FE_TONEAREST    /*implementation defined*/
#define FE_TOWARDZERO   /*implementation defined*/
#define FE_UPWARD       /*implementation defined*/
Chacune de ces constantes macro développe en une expression constante entière positive ou nulle, ce qui peut me utilisé avec fesetround et fegetround pour indiquer l'un des modes pris en charge arrondi à virgule flottante. La mise en œuvre peuvent définir des constantes de mode d'arrondi dans <fenv.h>, qui devraient tous commencer par FE_ suivie par au moins une lettre majuscule. Chaque macro n'est définie que si elle est soutenue .
Original:
Each of these macro constants expands to a nonnegative integer constant expression, which can me used with fesetround and fegetround to indicate one of the supported floating-point rounding modes. The implementation may define additional rounding mode constants in <fenv.h>, which should all begin with FE_ followed by at least one uppercase letter. Each macro is only defined if it is supported.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Sur la plupart des implémentations, ces constantes macro étendre aux valeurs égales aux valeurs de FLT_ROUNDS et float_round_style
Original:
On most implementations, these macro constants expand to the values equal to the values of FLT_ROUNDS and float_round_style
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Constante
Original:
Constant
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Explanation
FE_DOWNWARD
arrondi vers l'infini négatif
Original:
rounding towards negative infinity
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
FE_TONEAREST
arrondi vers entier le plus proche
Original:
rounding towards nearest integer
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
FE_TOWARDZERO
arrondi vers zéro
Original:
rounding towards zero
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
FE_UPWARD
arrondi vers l'infini positif
Original:
rounding towards positive infinity
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Modes d'arrondi supplémentaires peuvent être soutenues par une mise en œuvre .
Original:
Additional rounding modes may be supported by an implementation.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[modifier] Exemple

[modifier] Voir aussi

obtient ou définit direction d'arrondi
Original:
gets or sets rounding direction
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++ documentation for floating point rounding macros