| name |
description |
parameter and return value types |
include file |
abs |
absolute value |
int abs(int n); |
cstdlib |
|
|
double abs(double n); |
cmath |
ceil |
round the value up to the next whole number (ceiling) |
double ceil(double x); |
cmath |
exp |
e raised to power of x |
double exp(int x); |
cmath |
floor |
round the value down to the previous whole number (floor) |
double floor(double x); |
cmath |
log |
natural logarithm |
double log(double x); |
cmath |
pow |
raise x to the power of y |
double pow(double x, double y); |
cmath |
sqrt |
square root |
double sqrt(double x); |
cmath |
cbrt |
cube root |
double cbrt(double x); |
cmath |