跳到主要内容

ATAN

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

Syntax

expression.ATAN(arg1);

expression - A variable that represents a ApiWorksheetFunction class.

Parameters

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

Returns

number

Example

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