JS Math Object method

Source: Internet
Author: User
Tags acos asin cos natural logarithm square root

ABS returns the absolute value of the number.  Math.Abs (number) ACOs returns the inverse cosine of the numbers. Math.acos (number) ASIN returns the inverse chord value of the digit.  Math.asin (number) Atan returns the inverse tangent value of the digit. Math.atan (number) atan2 returns the angle (in radians) from the X-axis to the (y,x) point.  Math.atan2 (y, x) ceil returns the smallest integer greater than or equal to its numeric parameter.   Math.ceil (number) Cos returns the cosine of the count.  Math.Cos (number) exp Returns the Power of E (the base of natural logarithm).  Math.exp (number) floor returns the largest integer less than or equal to its numeric parameter.  Math.floor (number) log returns the natural logarithm of numbers. Math.log (number) Max returns the larger of the 0 or more numeric expressions given. Math.max (NUM1,NUM2,NUM3,NUM4); min Returns the lower value of the given 0 or more numeric expressions.  Math.min (NUM1,NUM2,NUM3,NUM4);p ow returns the specified power of the bottom expression. Math.pow (Base, exponent);Base--expression Low value exponent--the exponential value of an expression random returns0And1the pseudo-random number between.   Math.random () round returns the nearest integer math.round (number) to the given numeric expression, SQRT returns the square root of the digit. MATH.SQRT (number) Sin returns the sinusoidal value of a digit.   The Math.sin (number) tan returns the tangent value of the digit. Math.tan (number)

JS Math Object method

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.