# cos() function

The cos() function calculates the trigonometric
cosine of an angle of a specified numeric expression in the range
0 to 360 degrees.

## Syntax

```
cos(num.exp)
```

## Parameter(s)

| num.exp | Angle from 0 through 360 from which the trigonometric cosine is to be calculated. |
| --- | --- |

## Description

Values that are less than 0
or greater than 360 are adjusted using the integer division function: `mod(angle, 360)`.

## See also

- [BASIC functions](https://d3codex.com/pickbasic-flashbasic/basic-functions/)
- [ln() function](https://d3codex.com/pickbasic-flashbasic/ln-function/)
- [Numeric expressions](https://d3codex.com/pickbasic-flashbasic/numeric-expressions/)
- [sin() function](https://d3codex.com/pickbasic-flashbasic/sin-function/)
- [Statements and functions](https://d3codex.com/pickbasic-flashbasic/statements-and-functions/)
- [tan() function](https://d3codex.com/pickbasic-flashbasic/tan-function/)

---
Source: https://d3codex.com/pickbasic-flashbasic/cos-function/ - part of the D3Codex reference.
