Skip to content

Cos - Built-in Arithmetic Function

Purpose

Cos returns the cosine of an angle.

Syntax

Cos(num) 

Arguments

Argument Required Description
num Yes Any numeric expression. Represents the angle in radians.

Returns

Number

Example

Return Cos(1.047) // returns 0.50 (when the field has a 2 decimal format) 

Notes

  • When num cannot be converted to a number, a runtime error is generated.
  • To convert degrees to radians, multiply degrees by pi/180.