JavaScript asin() method
- Previous Page acosh()
- Next Page asinh()
- Go Up One Level JavaScript Math Reference Manual
Definition and usage
asin()
The method returns the arcsine value of a number, and the returned value is the radian value between -PI/2 and PI/2.
Comment:If the parameter x If the value is out of the range of -1 to 1, the browser will return NaN.
Tip:1 will return the value of PI/2. -1 will return the value of -PI/2.
Syntax
Math.asin(x)
Parameter value
Parameter | Description |
---|---|
x | Required. Number. |
Technical details
Return value: | Number, from -PI/2 to PI/2, if the value is out of the range of -1 to 1, it returns NaN. |
---|---|
JavaScript version: | ECMAScript 1 |
Browser Support
Math.asin()
Is an ES1 Feature (JavaScript 1999). All browsers fully support it:
Chrome | IE | Edge | Firefox | Safari | Opera |
---|---|---|---|---|---|
Support | Support | Support | Support | Support | Support |
Related Pages
Tutorial:JavaScript Mathematics
- Previous Page acosh()
- Next Page asinh()
- Go Up One Level JavaScript Math Reference Manual