Start Back Next End
  
ZBasic System Library
60
ZBasic Microcontrollers
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