System Namespace Math Class
Returns the smallest whole number greater than or equal to the specified number.
[ VB ]
Public Shared Function Ceiling ( _
ByVal a As Double _
) As Double
[ C# ]
public static double Ceiling (
double a
);
[ C++ ]
public: static double Ceiling (
double a
);
[ JScript ]
public static function Ceiling (
a : double
) : double;
- a
- A number.
The smallest whole number greater than or equal to a. If a is equal to NaN, NegativeInfinity, or PositiveInfinity, that value is returned.
The behavior of this method follows IEEE Standard 754, section 4. This kind of rounding is sometimes called rounding toward positive infinity.
Math Members Round Floor