std::floor
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 floor(float arg ); | ||
double floor(double arg ); | ||
longdouble floor(longdouble arg ); | ||
double floor( Integral arg ); | (depuis C++11) | |
Calcule entier le plus proche ne dépassant pas
arg
. Original:
Computes nearest integer not greater than
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.
Sommaire |
[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 ne dépassant pas
arg
Original:
Nearest integer not greater than
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]Notes
La valeur entière peut toujours être représentée par le type virgule flottante donné .
Original:
The integer value can be always represented by the given floating point type.
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]Exemple
Résultat :
12.000000 12.000000 12.000000 12.000000 13.000000
[modifier]Voir aussi
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) |
(C++11) (C++11) (C++11) | entier le plus proche, arrondi en s'éloignant de zéro dans les cas de transition Original: nearest integer, rounding 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. (fonction) |