# FACT Function

> Return the factorial of a number with the FACT formula function of TX Sheet Control: truncated decimals, FACT(0), the #NUM! error above 170 and an example.

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

---

Return the factorial of a number, the product 1 × 2 × … × `number`. Decimals are truncated, `FACT(0)` returns 1, and a negative number or a number above 170 returns `#NUM!`.

### Syntax

```text
FACT(number)
```

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

Available for supported offline calculation.

### Examples

```text
=FACT(5)
```

The formula returns 120, the product 1 × 2 × 3 × 4 × 5.

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:** [EXPONDIST Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/expondist/llms-full.txt)
- **Next:** [FACTDOUBLE Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/factdouble/llms-full.txt)
