Click or drag to resize
MathCeiling Method (Double)
Returns the smallest integral value that is greater than or equal to the specified double-precision floating-point number.

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public static double Ceiling(
	double a
)

Parameters

a
Type: SystemDouble
A double-precision floating-point number.

Return Value

Type: Double
The smallest integral value that is greater than or equal to a. If a is equal to NaN, NegativeInfinity, or PositiveInfinity, that value is returned. Note that this method returns a Double instead of an integral type.
See Also