Syntax
Public Function MathCeil(Number As Double) As Integer
Description
This function is used to return the smallest integer greater than or equal to the given number.
Parameters
Key | Description |
Number | Value that wants to get the ceil for it, a value of type Double. |
Return value
Returns the smallest integer greater than or equal to given number.
Sample
Public Sub main() AlertMessage MathCeil (1.1) will return 2 AlertMessage MathCeil (1.8) will return 2 AlertMessage MathCeil (-1.1) will return 1 AlertMessage MathCeil (-1.8) will return 1End Sub
See Also