Export (0) Print
Expand All

Decimal.Ceiling Method

Updated: August 2008

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

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

public static decimal Ceiling(
	decimal d
)

Parameters

d
Type: System.Decimal

A decimal number.

Return Value

Type: System.Decimal
The smallest integral value greater than or equal to the d parameter. Note that this method returns a Decimal rather than an integral type.

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

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0

Date

History

Reason

August 2008

Added additional detail about the method's return value.

Customer feedback.

Community Additions

ADD
Show:
© 2015 Microsoft