Copy as Markdown[Open in ChatGPT](https://chatgpt.com/?q=Read%20https%3A%2F%2Fcoralogix.com%2Fdocs%2Fdataprime%2Flanguage-reference%2Ffunctions-reference%2Fstring%2Fchr.md%20and%20help%20me%20with%20my%20question%20about%20this%20Coralogix%20documentation%20page.)[Open in Claude](https://claude.ai/new?q=Read%20https%3A%2F%2Fcoralogix.com%2Fdocs%2Fdataprime%2Flanguage-reference%2Ffunctions-reference%2Fstring%2Fchr.md%20and%20help%20me%20with%20my%20question%20about%20this%20Coralogix%20documentation%20page.)

# `chr`

## Description

Converts a numeric Unicode code point into its corresponding string character.

## Syntax

Like many functions in DataPrime, `chr` supports<!-- --> [two notations](https://coralogix.com/docs/docs/dataprime/language-reference/functions-reference/.md),<!-- --> **function** and **method**. These interchangeable forms allow flexibility in how you structure expressions.

* Function notation
* Method notation

```
chr(value: number): string
```

```
(value: number).chr(): string
```

## Arguments

| Name    | Type     | Required | Description                                        |
| ------- | -------- | -------- | -------------------------------------------------- |
| `value` | `number` | **true** | The Unicode code point to convert into a character |

## Example

**Convert a numeric code point into a Unicode character**

Using `chr`, the numeric value can be rendered as its corresponding Unicode symbol. Consider the following document:

### Example data

```
{

    "emoji_numeric_value": 10084

}
```

### Example query

* Function notation
* Method notation

```
create emoji_value from chr(emoji_numeric_value)
```

```
create emoji_value from emoji_numeric_value.chr()
```

### Example output

Both notations produce:

```
{

    "emoji_numeric_value": 10084,

    "emoji_value": "❤"

}
```
