std::round, std::lround, std::llround
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 <cmath> | ||
float round(float arg ); | (depuis C++11) | |
double round(double arg ); | (depuis C++11) | |
longdouble round(longdouble arg ); | (depuis C++11) | |
double round( Integral arg ); | (depuis C++11) | |
long lround(float arg ); | (depuis C++11) | |
long lround(double arg ); | (depuis C++11) | |
long lround(longdouble arg ); | (depuis C++11) | |
long lround( Integral arg ); | (depuis C++11) | |
longlong llround(float arg ); | (depuis C++11) | |
longlong llround(double arg ); | (depuis C++11) | |
longlong llround(longdouble arg ); | (depuis C++11) | |
longlong llround( Integral arg ); | (depuis C++11) | |
Calcule entier le plus proche
arg
. Nombre est arrondi en s'éloignant de zéro dans les cas de transition Original:
Computes nearest integer to
arg
. Number is rounded away from zero in halfway cases 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
arg | - | valeur du point flottant Original: floating point value 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
Entier le plus proche
arg
.Original:
Nearest integer to
arg
.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.
[[Image:
Retourne la valeur
|200x200px]]Original:
{{{2}}}
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.
Argument
[modifier]Voir aussi
entier le plus proche n'est pas supérieure à la valeur donnée Original: nearest integer not greater than the given value The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction) | |
entier le plus proche n'est pas inférieure à la valeur donnée Original: nearest integer not less than the given value 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) | entier le plus proche n'est pas supérieure en grandeur à la valeur donnée Original: nearest integer not greater in magnitude than the given value The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction) |