Share via


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 (
         doublea
)

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 .NET Micro Framework version 3.0 and above.

See Also

Reference

Math Class
Math Members
System Namespace