Ceiling Function
Syntax:
float ceilf(float num); double ceil(double num); long double ceill(long double num);
Example:
#include <math.h> #include <stdio.h> int main() { printf("%f", ceil(12.4)); printf("%f", ceil(-10.9)); printf("%f", ceil(0.9)); printf("%f", ceil(-1.9)); return 0; }Back