Method CeilingAsInt
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
valuedoubleThe 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.