Information
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

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

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method Static member Ceiling(Decimal) Returns the smallest integral value that is greater than or equal to the specified decimal number.
Public method Static member Ceiling(Double) Returns the smallest integral value that is greater than or equal to the specified double-precision floating-point number.
Top

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

Show:
© 2014 Microsoft