CMath Functions
Math Functions
There is also a list of math functions available, that allows you to perform mathematical tasks on numbers.
To use them, you must include themath.hheader file in your program:
Square Root
To find the square root of a number, use thesqrt() function:
Round a Number
Theceil() function rounds a number upwards to its nearest integer, and thefloor() method rounds a number downwards to its nearest integer, and returns the result:
Power
Thepow() function returns the value ofx to the power ofy (xy):
Complete Math Reference
For a complete reference of math functions, go to ourC <math.h> Library Reference.

