Afficher : Delphi
C++
Préférences d'affichage
System.Math.Ceil
De XE2 API Documentation
Delphi
function Ceil(const X: Single): Integer; function Ceil(const X: Double): Integer; function Ceil(const X: Extended): Integer;
C++
extern PACKAGE int __fastcall Ceil(const float X)/* overload */;
Propriétés
| Type | Visibilité | Source | Unité | Parent |
|---|---|---|---|---|
| function | public | System.Math.pas System.Math.hpp |
System.Math | System.Math |
Description
Arrondit des variables vers plus l'infini.
Appelez Ceil pour obtenir le plus petit entier supérieur ou égal à X. La valeur absolue de X doit être inférieure à MaxInt. Par exemple :
Ceil(-2.8) = -2
Ceil(2.8) = 3
Ceil(-1.0) = -1