System.Math.Floor
Delphi
function Floor(const X: Single): Integer;
function Floor(const X: Double): Integer;
function Floor(const X: Extended): Integer;
C++
extern DELPHI_PACKAGE int __fastcall Floor(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 les variables vers moins l'infini.
Appelez Floor pour obtenir le plus grand entier inférieur ou égal à X. Par exemple :
Floor(-2.8) = -3
Floor(2.8) = 2
Floor(-1.0) = -1
Remarque: La valeur absolue de X doit être inférieure à MaxInt.