fabs(x) | absolute value of x | fabs(-5.7) returns 5.7 |
abs(x) | absolute value of x | abs(-5.7) returns 5.7 |
pow(x, y) | x to the y power | pow(7.0, 2.0) returns 49.0 |
sqrt(x) | the square root of x | sqrt(25.0) returns 5.0 |
ceil(x) | rounds up to next integral value | ceil(12.3) returns 13 |
floor(x) | rounds x down to next integral value | floor(72.997) returns 72 |
fmod(x, y) | floating point remainder of x/y | fmod(2.9, 1.3) returns 0.3 |
log(x) | returns the natural log of x | log(100) returns 4.60517 |
log10(x) | returns the log (base 10) of x | log10(100) returns 2 |
cos(x) | cosine of x (in radians) | cos(0.0) returns 1 |
sin(x) | sine of x (in radians) | sin(90.0 * 0.0174533) returns 1 |
tan(x) | tan of x (in radians) | tan(45.0 * 0.0174533) returns 1 |