Everything

ceilf


Returns the smallest integral value not less than or equal to the given floating-point number.

[Format]

#include <mathf.h>

float ceilf (float f);

[Parameters]

f Floating-point number for which smallest integral value not less than that number is to be computed

[Return values]

Smallest integral value not less than or equal to f

[Remarks]

The ceilf function returns the smallest integral value not less than or equal to f, expressed as a float type value. Therefore, if f is negative, the value after truncation of the fractional part is returned.