Math.Ceiling Method

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Returns the smallest integer greater than or equal to the specified number.

Namespace:   System
Assembly:  mscorlib (in mscorlib.dll)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticCeiling(Decimal)

Returns the smallest integral value that is greater than or equal to the specified decimal number.

System_CAPS_pubmethodSystem_CAPS_staticCeiling(Double)

Returns the smallest integral value that is greater than or equal to the specified double-precision floating-point number.

The behavior of this method follows IEEE Standard 754, section 4. This kind of rounding is sometimes called rounding toward positive infinity.

Return to top
Show: