TRY NEW VERSION

ATAN2

ATAN2(arg1, arg2) → { number | string | boolean }

Returns the arctangent of the specified x and y coordinates, in radians between -Pi and Pi, excluding -Pi.

Parameters:

Name Type Description
arg1 number

Is the x-coordinate of the point.

arg2 number

Is the y-coordinate of the point.

Returns:

Type
number | string | boolean

Example

Copy code
builder.CreateFile("xlsx");
var oWorksheet = Api.GetActiveSheet();
var oFunction = Api.GetWorksheetFunction();
oWorksheet.GetRange("A1").SetValue(oFunction.ATAN2(1, -9));
builder.SaveFile("xlsx", "ATAN2.xlsx");
builder.CloseFile();

Resulting document