# `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/dataprime/language-reference/functions-reference/index.md), **function** and **method** notation. These interchangeable forms allow flexibility in how you structure expressions.

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

```dataprime
(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

```json
{
    "emoji_numeric_value": 10084
}
```

### Example query

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

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

### Example output

Both notations produce:

```json
{
    "emoji_numeric_value": 10084,
    "emoji_value": "❤"
}
```
