floor function
Floor function returns the greatest integer not greater than x. For example, if the input is 2.25 then the output will be 2.00.
Declaration: double floor(double x);
C programming code for floor
#include <math.h>
Floor function returns the greatest integer not greater than x. For example, if the input is 2.25 then the output will be 2.00.
Declaration: double floor(double x);
Cos function returns cosine of an angle(in radian).
1 radian = 57.2958(approximately).
Declaration: double cos(double);
Sin function returns sine of an angle(in radian).
Declaration: double sin(double);
Ceil function is used to round up a number i.e. it returns the smallest number which is greater than argument passed to it.
Declaration: double ceil(double);
log10 function returns common logarithm (base is 10) of a number.
Declaration: double log10(double number);
Function sqrt in C returns the square root of a number. To use it, include the "math.h" header file in the program.
Declaration: double sqrt(double);
log function returns natural logarithm (base = e) of a number, where e is the exponential number.
Declaration: double log(double);
pow function returns x raised to the power y, where x and y are variables of the double data type.
Declaration: double pow(double, double);
abs (isn't a function but a macro) is used for calculating the absolute value of a number.