HOME HTML CSS JAVASCRIPT SQL PHP JQUERY XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

JavaScript asin() Method

Math Object Reference JavaScript Math Object

Example

Return the arcsine of a number:

Math.asin(0.5);

The result will be:


Try it yourself »

Definition and Usage

The asin() method returns the arcsine of a number as a value between -PI/2 and PI/2 radians.

Note: If the parameter x is outside the range -1 to 1, the browser will return NaN.

Tip: 1 will return the value of PI/2.


Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

The asin() method is supported in all major browsers.


Syntax

Math.asin(x)

Parameter Values

Parameter Description
x Required. A number

Return Value

Type Description
Number A Number, from -PI/2 to PI/2, or NaN if the value is outside the range of -1 to 1

Technical Details

JavaScript Version: 1.0


Math Object Reference JavaScript Math Object

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates

SHARE THIS PAGE