Skip to main content

Math Static Method

Math.abs(x)

[Math](math) [Static Method](static-method) to return absolute positive value of x

Math.acos(x)

[Math](math) [Static Method](static-method) to return arccosine of x (in radians)

Math.asin(x)

[Math](math) [Static Method](static-method) to return arcsine of x (in radians)

Math.atan(x)

[Math](math) [Static Method](static-method) to return arctangent of x (in radians)

Math.atan2(y,x)

[Math](math) [Static Method](static-method) to return arctangent of quotient of Argument

Math.ceil(x)

[Math](math) [Static Method](static-method) to return x rounded up to nearest integer

Math.cos(x)

[Math](math) [Static Method](static-method) to return cosine of x (in radians)

Math.exp(x)

[Math](math) [Static Method](static-method) to return e^{x}

Math.floor(x)

[Math](math) [Static Method](static-method) to return x rounded down to nearest integer

Math.log(x)

[Math](math) [Static Method](static-method) to return natural log (base E) of x

Math.max(...num)

[Math](math) [Static Method](static-method) to return largest number in ...numbers

Math.min(...num)

[Math](math) [Static Method](static-method) to return smallest number in ...numbers

Math.pow(x,y)

[Math](math) [Static Method](static-method) to return x^y

Math.random()

[Math](math) [Static Method](static-method) to return Pseudorandom number between 0 & 1

Math.round(x)

[Math](math) [Static Method](static-method) to return x rounded to nearest integer

Math.sin(x)

[Math](math) [Static Method](static-method) to return sine of x (in radians)

Math.sqrt(x)

[Math](math) [Static Method](static-method) to return square root of x

Math.tan(x)

[Math](math) [Static Method](static-method) to return tangent of angle (in radians)

References

  1. Math.tan(x)[Math](math) [Static Method](static-method) to return tangent of angle (in radians)

  2. Math.sqrt(x)[Math](math) [Static Method](static-method) to return square root of x

  3. Math.sin(x)[Math](math) [Static Method](static-method) to return sine of x (in radians)

  4. Math.round(x)[Math](math) [Static Method](static-method) to return x rounded to nearest integer

  5. Math.random()[Math](math) [Static Method](static-method) to return Pseudorandom number between 0 & 1

  6. Math.pow(x,y)[Math](math) [Static Method](static-method) to return x^y

  7. Math.min(...num)[Math](math) [Static Method](static-method) to return smallest number in ...numbers

  8. Math.max(...num)[Math](math) [Static Method](static-method) to return largest number in ...numbers

  9. Math.log(x)[Math](math) [Static Method](static-method) to return natural log (base E) of x

  10. Math.floor(x)[Math](math) [Static Method](static-method) to return x rounded down to nearest integer

  11. Math.exp(x)[Math](math) [Static Method](static-method) to return e^{x}

  12. Math.cos(x)[Math](math) [Static Method](static-method) to return cosine of x (in radians)

  13. Math.ceil(x)[Math](math) [Static Method](static-method) to return x rounded up to nearest integer

  14. Math.atan2(y,x)[Math](math) [Static Method](static-method) to return arctangent of quotient of Argument

  15. Math.atan(x)[Math](math) [Static Method](static-method) to return arctangent of x (in radians)

  16. Math.asin(x)[Math](math) [Static Method](static-method) to return arcsine of x (in radians)

  17. Math.acos(x)[Math](math) [Static Method](static-method) to return arccosine of x (in radians)

  18. Math.abs(x)[Math](math) [Static Method](static-method) to return absolute positive value of x