Math.asin
Math.asin
Function
arcsine. Returns the arcsine of value in radians.
Syntax
Math.asin(value)
Parameters
| Parameters | Type | Required | Default value | Description |
|---|---|---|---|---|
| value | Number | Yes | None | The number involved in the calculation. |
Return value
| Type | Description |
|---|---|
| Int/Float | Returns the arcsine of value in radians. An Int is returned for integer results, and a Float for non-integer or non-finite results. |
Example
result = Math.asin(0) // Output: 0 print result
Notes
- Return NaN according to the f64 rule when exceeding [-1, 1].