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.

Name Description
Math.Ceiling (Decimal) Returns the smallest integer greater than or equal to the specified decimal number.
Math.Ceiling (Double) Returns the smallest integer greater than or equal to the specified double-precision floating-point number.

Supported by the .NET Compact Framework.

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

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2015 Microsoft