Easy Tutorial
❮ Prop Url Name Prop Tabledata Cellindex ❯

JavaScript asin() Method

JavaScript Math Object

Example

Return the arcsine of a number:

Output result:


Definition and Usage

The asin() method returns a numeric value between -PI/2 and PI/2 radians.

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

Tip: If the parameter x is 1, the method will return PI/2.


Browser Support

All major browsers support the asin() method.


Syntax

Parameter Values

Parameter Description
x Required. Must be a number between -1.0 and 1.0.

Return Value

Type Description
Number The arcsine of x. The returned value is between -PI/2 and PI/2 radians.

Technical Details

| JavaScript Version: | 1.0 | | --- | --- |


JavaScript Math Object

❮ Prop Url Name Prop Tabledata Cellindex ❯