Method |
Description (Returns...) |
abs(x) |
absolute value of a number |
acos(x) |
arccosine of a number |
asin(x) |
arcsine of a number |
atan(x) |
arctangent of x as a numeric value between -PI/2 and PI/2 radians |
atan2(y,x) |
angle theta of an (x,y) point as a numeric value between -PI and PI radians |
ceil(x) |
value of a number rounded upwards to the nearest integer |
cos(x) |
cosine of a number |
exp(x) |
value of Ex |
floor(x) |
value of a number rounded downwards to the nearest integer |
log(x) |
natural logarithm (base E) of a number |
max(x,y) |
number with the highest value of x and y |
min(x,y) |
number with the lowest value of x and y |
pow(x,y) |
value of x to the power of y |
random() |
random number between 0 and 1 |
round(x) |
number to the nearest integer |
sin(x) |
sine of a number |
sqrt(x) |
square root of a number |
tan(x) |
tangent of an angle |
valueOf() |
primitive value of a Math object |