# GAMMALN.PRECISE Function

> Calculate the natural logarithm of the gamma function with the GAMMALN.PRECISE formula function of TX Sheet Control: valid numbers, errors and an example.

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

---

Return the natural logarithm of the gamma function. GAMMALN.PRECISE calculates the same result as [GAMMALN](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/gammaln/llms-full.txt). `number` must be greater than 0; 0 and negative numbers return `#NUM!`.

### Syntax

```text
GAMMALN.PRECISE(number)
```

Category: Statistics. Minimum arguments: 1. Maximum arguments: 1.

Available for supported offline calculation.

### Examples

```text
=GAMMALN.PRECISE(5)
```

The formula returns 3.1780538303, the natural logarithm of 24.

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:** [GAMMALN Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/gammaln/llms-full.txt)
- **Next:** [GAUSS Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/gauss/llms-full.txt)
