Math.Ceil
From RAD Studio VCL Reference
Contents |
Delphi Information
From Math.pas
function Ceil(const X: Extended): Integer;
Unit: Math
Type: function
Visibility: public
C++ Information
From Math.hpp
int __fastcall Ceil(long double X);
Unit: Math
Type: function
Description
Rounds variables up toward positive infinity.
Call Ceil to obtain the lowest integer greater than or equal to X. The absolute value of X must be less than MaxInt. For example:
Ceil(-2.8) = -2
Ceil(2.8) = 3
Ceil(-1.0) = -1