> For the complete documentation index, see [llms.txt](https://docs.nedyx.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.nedyx.com/version-1.52-preview/clearlines-functions/text-functions/code.md).

# CODE

Returns the Unicode value of a character.

#### Syntax <a href="#syntax.6" id="syntax.6"></a>

**CODE**(*character*)

* *character* - the character from which the Unicode value is to be returned - ***Value type**: text*

#### Remarks <a href="#remarks.4" id="remarks.4"></a>

* If character is a text with several characters, only the Unicode value of the first character is returned.

#### Examples

CODE with a single character:

<div align="left"><figure><img src="https://content.gitbook.com/content/4X6nN2wTlDsVpd8P1WDM/blobs/jAV3gipTKrlUhlXojlKg/grafik.png" alt=""><figcaption></figcaption></figure></div>

CODE with multiple characters:

<div align="left"><figure><img src="https://content.gitbook.com/content/4X6nN2wTlDsVpd8P1WDM/blobs/GHRRm9yeFOygwkoGxOFh/grafik.png" alt=""><figcaption></figcaption></figure></div>

In combination with the CSVTORANGE function, you can determine all the Unicode values of a text.&#x20;

In this case, the text *mytext* is first split into its individual letters using the CSVTORANGE function. The CODE function can then be applied to the individual cells.

<div align="left"><figure><img src="https://content.gitbook.com/content/4X6nN2wTlDsVpd8P1WDM/blobs/OvOdZaNCecfC2gSpgzOq/grafik.png" alt=""><figcaption></figcaption></figure></div>
