To use a mathematical function in C, header <cmath> must be included.

**ceil function:** It is used to return smallest integer of an argument which is not less than the argument itself.

Syntax:

float ceil(float x);

**floor function:** It is used to return largest integer of an argument which is not greater than the argument itself.

Syntax:

float floor(float x);

**fabs function:** It is used to return absolute value of an argument.

Syntax:

float fabs(float x);

**fmod function:** It is used to return the remainder of a/b.

Syntax:

float fmod(float a, float b);

**modf function:** After breaking a in to integer and fraction it is used to return the fraction part and places integer part in b.

Syntax:

float modf(float a, float *b);

**sqrt function:** It is used to return the square root of an argument.

Syntax:

float sqrt(float x);

## Leave a Reply