# char {#char}

**Parent topic:**[Functions](../../Functions/category.md)

## Syntax {#syntax}

`char(X)`

## Arguments {#arguments}

**X** can be of any data type.

## Details {#details}

Convert the input to the data type of CHAR.

## Examples {#examples}

```
x=char();
x;
// output: 00c

typestr x;
// output: CHAR

a=char(99);
a;
// output: 'c'

char("990");
Failed to convert the string to CHAR'

typestr a;
// output: CHAR

char(a+5);
// output: 'h'
```

