# IMLOG2 Function

> Calculate the base-2 logarithm of a complex number with the IMLOG2 formula function of TX Sheet Control: x+yi or x+yj text, #NUM! for 0 and an example.

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

---

Return the base-2 logarithm of a complex number. `inumber` is a complex number as text in the form x+yi or x+yj, or a real number, and the result is a complex number as text. 0 returns `#NUM!`.

### Syntax

```text
IMLOG2(inumber)
```

Category: Engineering. Minimum arguments: 1. Maximum arguments: 1.

Available for supported offline calculation.

### Examples

```text
=IMLOG2("2+3i")
```

The formula returns the text 1.850219859070546+1.417871630745722i.

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:** [IMLOG10 Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/imlog10/llms-full.txt)
- **Next:** [IMPOWER Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/impower/llms-full.txt)
