Math (Mathematical object) __javascript programming notes

Source: Internet
Author: User

Math Arithmetic functions and constants
Math.Abs () Calculate absolute Value
Math.acos () Calculate the inverse cosine value
Math.asin () Calculate the inverse chord value
Math.atan () Calculate the tangent value
Math.atan2 () Calculates the angle between the x axis and the point
Math.ceil () Rounding on a number
Math.Cos () To calculate the cosine value
Math.e Arithmetic Constants E
Math.exp () Calculate ex
Math.floor () Rounding for a number
Math.ln10 Arithmetic often loge10
Math.ln2 Arithmetic Constants Loge2
Math.log () Calculates the natural logarithm of a number
math.log10e Arithmetic Constants log10e
math.log2e Arithmetic Constants Log2e
Math.max () Returns the largest parameter
Math.min () Returns the smallest argument
Math.PI Arithmetic constant pi
Math.pow () Calculate XY
Math.random () Returns a pseudo-random number
Math.Round () Round to Nearest integer
Math.sin () To calculate a sine value
MATH.SQRT () Calculate square root
Math.sqrt1_2 Arithmetic constant 1/
Math.sqrt2 Arithmetic constants
Math.tan () Calculate the tangent value

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.