# COS Function

> Return the cosine of an angle in radians with the COS formula function of TX Sheet Control: converting degrees with RADIANS or PI and an example.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Function
- **Path:** TX Sheet Control > API Reference > Formula Functions > COS Function
- **182 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/cos/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/cos/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/cos/llms-full.txt

---

Return the cosine of an angle. `number` is the angle in radians. Convert an angle in degrees with [RADIANS](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/radians/llms-full.txt) or by multiplying it by `PI()/180`. Text that is not a number returns `#VALUE!`.

### Syntax

```text
COS(number)
```

Category: Math. Minimum arguments: 1. Maximum arguments: 1.

Available for supported offline calculation.

### Examples

```text
=COS(0.5)
```

The formula returns 0.8775825619.

Cell and range examples require appropriate input values in the referenced cells. Handle invalid arguments, formula errors and array and spill constraints.

### See Also

- [Formulas](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/formulas/llms-full.txt)
- [Custom Functions and Formula Data](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/custom-functions/llms-full.txt)

---

## Nearby

- **Previous:** [CORREL Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/correl/llms-full.txt)
- **Next:** [COSH Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/cosh/llms-full.txt)
