Floor (rtl)
Function Floor(X:Float):Integer;
Cette fonction retourne le plus grand entier inférieur à un nombre flottant.
| Result | Le plus grand entier inférieur à l'argument. |
| X | Nombre. |
Exemple
var d:double; c:Integer;
begin
d := 1.6;
c := floor(d); // c = 1
end;
Voir aussi: