Basic30 Language Reference
ceil Function

Returns the smallest hole number greater than or equal to x..

Function ceil(x As Single) As Single

Requirements

  1. This function requires the link time library "libm.a".  It is a free download from the Microchip website.

Examples

Dim a as Single

a=2.75
a=ceil(a)    ' a is now 3.00
 

Also See: floor