Home >>C Tutorial >C Math Function

Mathematical operations can be performed in the C programming by the functions that are defined in <math.h> header file. In order to perform various mathematical operations such as floor(), sqrt(), pow(), ceil() etc there are several methods that are designed in the <math.h> header file.

There are various methods that are defined in the math.h header file that are known to be used commonly. Here are the list of these functions:

Function | Description |
---|---|

ceil(number) | This method generally rounds up the provided number and returns the integer value that is greater than or equal to the provided number. |

floor(number) | This method generally rounds down the provided number and known to return the integer value that is less than or equal to the provided number. |

sqrt(number) | This method generally returns the square root of the provided number. |

pow(base, exponent) | This method is known to return the power of the provided number. |

abs(number) | This method generally returns the absolute value of the provided number. |

C Tutorial
History of the C Language
Features of the C Language
How to Install C
First C program
C Program Flow
Printf and scanf in C
Variables in C
Data Types in C
C Keywords
Operators in C
Comments in C
Escape Sequence in C
Constants in C
C If-else statements
C Switch Statement
C Loop
C While loop
C do-while loop
C for loop
Type Casting in C
C Functions
C call By Value and Reference
C Recursive Function
C Arrays
C 2-Dimensional Array
Arrays to function in C
Pointers in C
Double Pointers in C
Arithmetic Pointer in C
Dynamic memory allocation in C
C Strings
C Math Function
C Structure
C Nested Structure
C Union
C File Handling
C Preprocessor
C Error Handling
C Command Line Arguments