Table of Contents

Method CeilingAsInt

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

CeilingAsInt(double)

Returns the smallest integer greater than or equal to the specified double-precision floating-point number.

public static int CeilingAsInt(double value)

Parameters

value double

The double-precision floating-point number to be rounded up.

Returns

int

The smallest integer greater than or equal to value.

Remarks

This method uses Ceiling(double) internally and casts the result to an integer. If value exceeds the range of the int type, the result may overflow.