Returns the cosine of an angle.
Name | Type | Description |
arg1 | number | Is the angle in radians for which you want the cosine. |
builder.CreateFile("xlsx"); var oWorksheet = Api.GetActiveSheet(); var oFunction = Api.GetWorksheetFunction(); oWorksheet.GetRange("A1").SetValue(oFunction.COS(1.5)); builder.SaveFile("xlsx", "COS.xlsx"); builder.CloseFile();