# C Programming Language Tutorial – Lecture 10 math.h library

This tutorial explains various functions in math.h library and the difference between floor and ceil function in C.

#include#include int main(){ printf("Floor of 8.91 is: %lfn",floor(8.91)); //floor(x) - Return largest integer smaller than x printf("Ceil of 8.91 is: %lf",ceil(8.91)); //ceil(x) - Return smallest integer greater than x return 0; }