# CONVERT

engineering · from excel · excel: not yet compared · sheets: not yet compared

converts number between measurement units

## signature

```
CONVERT(number, from_unit, to_unit)
```

returns: `number`

## arguments

- number: number: required
- from_unit: text: required
- to_unit: text: required

## examples

formula and result, asserted in the engine test suite.

| formula | result | with |
| --- | --- | --- |
| `=CONVERT(100, "km", "mi")` | `62.13711922373339` | none |

## errors

error values observed from the engine: each with a call that produces it.

| error | produced by |
| --- | --- |
| `#N/A` | `=CONVERT(1, 2, 2)` |

## related

- [BESSELI](https://deepcalc.com/docs/functions/besseli.md): returns modified Bessel function In(x)
- [BESSELJ](https://deepcalc.com/docs/functions/besselj.md): returns Bessel function Jn(x)
- [BESSELK](https://deepcalc.com/docs/functions/besselk.md): returns modified Bessel function Kn(x)
- [BESSELY](https://deepcalc.com/docs/functions/bessely.md): returns Bessel function Yn(x)
- [BIN2DEC](https://deepcalc.com/docs/functions/bin2dec.md): converts binary number to decimal
- [BIN2HEX](https://deepcalc.com/docs/functions/bin2hex.md): converts binary number to hexadecimal
- [BIN2OCT](https://deepcalc.com/docs/functions/bin2oct.md): converts binary number to octal
- [BITAND](https://deepcalc.com/docs/functions/bitand.md): returns bitwise AND of two numbers

## navigate

- [all engineering functions](https://deepcalc.com/docs/functions/engineering-functions.md)
- [function index](https://deepcalc.com/docs/functions.md): all 602 functions
- [error values](https://deepcalc.com/docs/errors.md) · [concepts](https://deepcalc.com/docs/concepts.md) · [limits](https://deepcalc.com/docs/limits.md)
- [everything in one file](https://deepcalc.com/llms-full.txt)

source: https://deepcalc.com/docs/functions/convert