std::ceil
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. |
</div> </div>
Défini dans l'en-tête <cmath>
|
||
float ceil( float arg ); |
||
double ceil( double arg ); |
||
long double ceil( long double arg ); |
||
double ceil( Integral arg ); |
(depuis C++11) | |
Entier le plus proche calcule pas moins de
arg
. Original:
Computes nearest integer not less 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 |
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. |
Retourne la valeur
Le plus proche entier supérieur ou égal
arg
Original:
Nearest integer not less 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
Notes
Si l'argument est infini (positif ou négatif) ou zéro (positif ou négatif), la valeur de retour est le même que l'argument .
Original:
If the argument is infinity (positive or negative) or zero (positive or negative), the return value is the same as the argument.
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.
Représentable le plus élevé valeurs à virgule flottante sont des nombres entiers exacts dans tous les standards des formats à virgule flottante, de sorte que cette fonction ne jamais débordements .
Original:
The largest representable floating-point values are exact integers in all standard floating-point formats, so this function never overflows.
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.
Cette fonction peut, mais n'est pas tenu de, lever FE_INEXACT exceptions de virgule flottante pour les arguments non entiers .
Original:
This function may, but is not required to, raise FE_INEXACT floating-point exceptions for non-integer arguments.
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.
Exemple
Résultat :
12.000000 13.000000 13.000000 13.000000 13.000000