JavaScript objects and Array Reference Encyclopedia (9)

Source: Internet
Author: User
Tags array object integer natural logarithm reference square root version value of pi
Reference | object | The natural logarithm of the array LN10 10 (approximately equal to 2.302)
LOG2E the logarithm of the 2-base e (about 1.442)
LOG10E the logarithm of a 10-base e (approximately equal to o.434)
Value of Pi∏ (approximately equal to 3.14159)
Sqrt1_2 0.5 square root (that is, L divided by 2 square root, approximately equal to o.707)
SQRT2 2 square root (approximately equal to 1.414)

Method

ABS () returns the absolute value of a number (that is, the distance between the number and O, for example, the absolute value of 2 and 12 is 2)
ACOs () returns the inverse cosine value (in radians) of a number
ASIN () returns the inverse string value (in radians) of a number
Atan () returns the tangent value (in radians) of a number
Ceil () returns the smallest integer equal to or greater than the number (Ceil (-22.22) returns -22;CEIL22,22) returns 23;ceil (22) returns 22)
COS () returns the cosine of a number (in radians)
exp () return en
Floor () is opposite to ceil (floor (22.22) returns one 23;floor (22.22) returns floor (22) returns 22)
10g () returns the natural logarithm of a number (in the case of E)
Max () returns a larger value between two numbers
MIN () returns the smaller value of the two number question
POW () returns the n-th square of M (where the M is the bottom and n is the exponent)
Random () returns a pseudo random number between 0 and 1 (this method is only available in Netscape
Valid in UNIX version of Navigator)
Round () returns the integer after the rounding of a number
Sin () returns the sine value of a number (in radians)
SQRT () returns the square root of a number
Tan () returns the tangent of a number

B.2L Navigator Object

This object is not a property of another object, but rather a built-in object that contains information about the browser that loaded the document.

Property

Code name of the appCodeName browser (for example, Mozilla)
The name of the AppName browser
Version number of AppVersion browser



Related Article

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.