--- title: "cosine of angle or radiant()" slug: "math-cosine" updated: 2026-08-13T13:12:39Z published: 2026-08-13T13:12:39Z canonical: "docs.lobstersoftware.com/math-cosine" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # cosine of angle or radiant() This function returns the cosine of angle **a**. ## Parameters | Parameter | Description | | --- | --- | | a | Angle in degrees or radians, see **b**. | | b | "true", if **a** is in radians. "false", if **a** is in degrees. Default: "false". | ## Examples **NOTE:** The data type on the field on which this function was used is "Double". | Parameter a | Parameter b | Result | | --- | --- | --- | | 180 | false | -1.0 | | 3 | true | -0.9899924966004454 |