floor, floorf, ceil, ceilf : floor and ceiling
Synopsis
Section titled “Synopsis”#include <math.h>double floor(double x);float floorf(float x);double ceil(double x);float ceilf(float x);```### Description
floor and floorf find the nearest integer less than or equal to x. ceil and ceilf find the nearest integer greater than or equal to x.### Returns
floor and ceil return the integer result as a double. floorf and ceilf return the integer result as a float.
---
**Authoritative source**: BUSMASTER DITA help source `floor.dita`, compiled into `BUSMASTER.CHM` with the application.