Javascript_math functions and attributes by functional classification Math Trigonometric Functions and attributes Math.sin ()--Returns the sine value of a number Math.Cos ()--Returns the cosine of a number Math.tan ()--Returns the tangent of a number Math.asin ()--Returns the inverse string value of a number Math.acos ()--Returns the inverse cosine of a number Math.atan ()--Returns the tangent value of a number Math.atan2 ()--Returns the angle (in radians) of the x axis to point (X,y) Math.PI Property--Returns the ratio of the circumference of a circle to its diameter (pi pi), which is approximately equal to 3.1415926 Math Natural logarithm correlation function and attribute Math.exp ()--Returns the X power (exponent) of E (base of natural logarithm) Math.log ()--Returns the natural logarithm of a number MATH.E Property--Returns the base of the natural logarithm, E is approximately equal to 2.718 MATH.LN2 Property--Returns the natural logarithm Loge2 of 2, approximately equal to 0.693 Math.ln10 Property--Returns the natural logarithm Loge2 of 10, approximately equal to 2.302 MATH.LOG2E Property--Returns the logarithm log2e of the 2-based e, which is approximately equal to 1.442 math.log10e Property--Returns the logarithm log10e of the 10-based e, which is equal to 0.434 Math Rounding class function Math.Abs ()--Returns the absolute value of a number Math.ceil ()--Returns the smallest integer greater than or equal to the numeric parameter (the integer function), rounding the number Math.floor ()--Returns the largest integer less than or equal to the numeric parameter, rounding the number Math.Round ()--Returns the nearest integer to the number, rounded Math Max Minimum class function Math.max ()--Returns the larger value of several digits Math.min ()--Returns the smaller value of several digits Math Power Exponential class function Math.pow ()--Returns the specified power of the base MATH.SQRT ()--Returns the square root of a number Math.sqrt1_2 Property--Returns the square root of 0.5, or 2 of the square to eradicate 1, about 0.707 Math.sqrt2 Property--Returns the square root of 2, approximately equal to 1.414 Math Random number function Math.random ()--Returns the pseudo-random number between 0 and 1 Javascript_math functions by alphabetical order Math.Abs ()--Returns the absolute value of a number Math.acos ()--Returns the inverse cosine of a number Math.asin ()--Returns the inverse string value of a number Math.atan ()--Returns the tangent value of a number Math.atan2 ()--Returns the angle (in radians) of the x axis to point (X,y) Math.ceil ()--Returns the smallest integer greater than or equal to the numeric parameter (the integer function), rounding the number Math.Cos ()--Returns the cosine of a number Math.exp ()--Returns the X power (exponent) of E (base of natural logarithm) Math.floor ()--Returns the largest integer less than or equal to the numeric parameter, rounding the number Math.log ()--Returns the natural logarithm of a number Math.max ()--Returns the larger value of several digits Math.min ()--Returns the smaller value of several digits Math.pow ()--Returns the specified power of the base Math.random ()--Returns the pseudo-random number between 0 and 1 Math.Round ()--Returns the nearest integer to the number, rounded Math.sin ()--Returns the sine value of a number MATH.SQRT ()--Returns the square root of a number Math.tan ()--Returns the tangent of a number Javascript_math Properties by alphabetical order MATH.E Property--Returns the base of the natural logarithm, E is approximately equal to 2.718 MATH.LN2 Property--Returns the natural logarithm Loge2 of 2, approximately equal to 0.693 Math.ln10 Property--Returns the natural logarithm Loge2 of 10, approximately equal to 2.302 MATH.LOG2E Property--Returns the logarithm log2e of the 2-based e, which is approximately equal to 1.442 math.log10e Property--Returns the logarithm log10e of the 10-based e, which is equal to 0.434 Math.PI Property--Returns the ratio of the circumference of a circle to its diameter (pi pi), which is approximately equal to 3.1415926 Math.sqrt1_2 Property--Returns the square root of 0.5, or 2 of the square to eradicate 1, about 0.707 Math.sqrt2 Property--Returns the square root of 2, approximately equal to 1.414
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.