Navigation bar
  Start Previous page
 42 of 283 
Next page End 37 38 39 40 41 42 43 44 45 46 47  

33
Ceiling
Type
Function returning Single
Invocation
Ceiling(arg)
Parameter
Method
Type
Description
arg
ByVal
Single
The value of which to compute the ceiling.
Discussion
This function returns a Single value that is the smallest integer that is greater than or equal to the
supplied value, effectively rounding up to the nearest integer.
Example
Dim ceil as Single
ceil = Ceiling(1.5) 
' result is 2.0
ceil = Ceiling(-1.5)  
' result is -1.0
Compatibility
This function is not available in BasicX compatibility mode.
See Also
Previous page Top Next page