Skip to main content

ATAN

Returns the arctangent of a number in radians, in the range from -Pi/2 to Pi/2.

Syntax

expression.ATAN(arg1);

expression - A variable that represents a ApiWorksheetFunction class.

Parameters

NameRequired/OptionalData typeDefaultDescription
arg1RequiredApiRange | ApiName | numberThe angle tangent.

Returns

number

Example

Calculate the arctangent of a number in a spreadsheet.

// Find an angle in radians from a decimal value in a spreadsheet.

// Determine what angle produces a specific tangent ratio in a spreadsheet.

let worksheet = Api.GetActiveSheet();
let func = Api.WorksheetFunction;
worksheet.GetRange("A1").SetValue(func.ATAN(0.25));