std:: float_round_style
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Basic types | |||||||||||||||||||||
| Fixed width integer types (C++11) | |||||||||||||||||||||
| Fixed width floating-point types (C++23) | |||||||||||||||||||||
|
|||||||||||||||||||||
| Numeric limits | |||||||||||||||||||||
| C numeric limits interface | |||||||||||||||||||||
| Runtime type information | |||||||||||||||||||||
|
|||||||||||||||||||||
| Static constants | ||||
|
(C++11)
|
||||
| Static member functions | ||||
|
(C++11)
|
||||
| Helper types | ||||
|
float_round_style
|
||||
|
Défini dans l'en-tête
<limits>
|
||
|
enum
float_round_style
{
round_indeterminate
=
-
1
,
|
||
Les constantes d'énumération de type
std::float_round_style
indiquent le style d'arrondi utilisé par l'arithmétique à virgule flottante chaque fois qu'un résultat d'une expression est stocké dans un objet de type à virgule flottante.
Constantes d'énumération
| Énumérateur | Signification |
| std::round_indeterminate | style d'arrondi indéterminable |
| std::round_toward_zero | arrondi vers zéro |
| std::round_to_nearest | arrondi vers la valeur représentable la plus proche |
| std::round_toward_infinity | arrondi vers l'infini positif |
| std::round_toward_neg_infinity | arrondi vers l'infini négatif |
Voir aussi
|
[static]
|
identifie le style d'arrondi utilisé par le type
(constante de membre statique publique) |
|
direction d'arrondi en virgule flottante
(constante de macro) |