Math.Ceiling Method
Returns the smallest integer greater than or equal to the specified double-precision floating-point number.
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Syntax
[MethodImplAttribute(InternalCall)]
public static double Ceiling (
double a
)
Parameters
- a
A double-precision floating-point number.
Return Value
The smallest integer greater than or equal to a. If a is equal to NaN, NegativeInfinity, or PositiveInfinity, that value is returned.
Remarks
The behavior of this method follows IEEE Standard 754, section 4. This kind of rounding is sometimes called rounding toward positive infinity.
Version Information
Available in the .NET Micro Framework versions 3.0, 3.5, 4.0, and 4.1.