Basic30 Language Reference
floor Function

Returns the largets hole number less than or equal to x..

Function floor(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=floor(a)    ' a is now 2.00
 

Also See: ceil