Skip to main content

DEGREES

Converts radians to degrees.

Syntax

expression.DEGREES(arg1);

expression - A variable that represents a ApiWorksheetFunction class.

Parameters

NameRequired/OptionalData typeDefaultDescription
arg1RequiredApiRange | ApiName | numberThe angle in radians to convert.

Returns

number

Example

Convert radians to degrees in a spreadsheet.

// How to convert radians to degrees in a spreadsheet.

// Use function to get degrees from radians in a spreadsheet.

let worksheet = Api.GetActiveSheet();
let func = Api.WorksheetFunction;
worksheet.GetRange("A1").SetValue(func.DEGREES(1.5));