The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
Math::Ceiling Method
.NET Framework (current version)
Returns the smallest integer greater than or equal to the specified number.
Assembly: mscorlib (in mscorlib.dll)
| Name | Description | |
|---|---|---|
![]() ![]() | Ceiling(Decimal) | Returns the smallest integral value that is greater than or equal to the specified decimal number. |
![]() ![]() | Ceiling(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.
Show:

