ASIN
Returns the arcsine of a number in radians, in the range from <em>-Pi/2</em> to <em>Pi/2</em>.
Syntax
expression.ASIN(arg1);
expression
- A variable that represents a ApiWorksheetFunction class.
Parameters
Name | Required/Optional | Data type | Default | Description |
---|---|---|---|---|
arg1 | Required | ApiRange | ApiName | number | The angle sine. It must be from -1 to 1. |
Returns
number
Example
This example shows how to return the arcsine of a number in radians, in the range from Pi/2 to Pi/2.
- Code
- Result
// How to get an arcsine of a number in radians.
// Use function to get an arcsine of a number and display it in the worksheet.
let worksheet = Api.GetActiveSheet();
let func = Api.GetWorksheetFunction();
worksheet.GetRange("A1").SetValue(func.ASIN(0.25));