StrictMath.Ceil(Double) Method

Definition

Returns the smallest (closest to negative infinity) double value that is greater than or equal to the argument and is equal to a mathematical integer.

[Android.Runtime.Register("ceil", "(D)D", "")]
public static double Ceil (double a);
[<Android.Runtime.Register("ceil", "(D)D", "")>]
static member Ceil : double -> double

Parameters

a
Double

a value.

Returns

the smallest (closest to negative infinity) floating-point value that is greater than or equal to the argument and is equal to a mathematical integer.

Attributes

Remarks

Returns the smallest (closest to negative infinity) double value that is greater than or equal to the argument and is equal to a mathematical integer. Special cases: <ul><li>If the argument value is already equal to a mathematical integer, then the result is the same as the argument. <li>If the argument is NaN or an infinity or positive zero or negative zero, then the result is the same as the argument. <li>If the argument value is less than zero but greater than -1.0, then the result is negative zero.</ul> Note that the value of StrictMath.ceil(x) is exactly the value of -StrictMath.floor(-x).

Java documentation for java.lang.StrictMath.ceil(double).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to