1.

What Are The Math Methods?

Answer»

Here is a list of the methods associated with Math object and their description

  • abs(): Returns the absolute VALUE of a number.
  • ACOS(): Returns the ARCCOSINE (in radians) of a number.
  • asin(): Returns the arcsine (in radians) of a number.
  • atan(): Returns the arctangent (in radians) of a number.
  • atan2(): Returns the arctangent of the quotient of its arguments.
  • ceil(): Returns the smallest integer greater than or equal to a number.
  • cos(): Returns the cosine of a number.
  • exp(): Returns EN, where N is the argument, and E is Euler's constant, the base of the natural logarithm.
  • floor(): Returns the LARGEST integer less than or equal to a number.
  • log(): Returns the natural logarithm (base E) of a number.
  • max(): Returns the largest of zero or more numbers.
  • min(): Returns the smallest of zero or more numbers.
  • pow(): Returns base to the exponent POWER, that is, base exponent.
  • random(): Returns a pseudo-random number between 0 and 1.
  • round(): Returns the value of a number rounded to the nearest integer.
  • sin(): Returns the sine of a number.
  • sqrt(): Returns the square root of a number.
  • tan(): Returns the tangent of a number.
  • toSource(): Returns the string "Math".

Here is a list of the methods associated with Math object and their description



Discussion

No Comment Found