This documentation is archived and is not being maintained.

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.

Show: