# Characters

Operators and functions for working with characters (**char** type) are described here.

* [int( char c ) int](/stdlib/char.md#int-char-c-int)
* [str( char c ) str](/stdlib/char.md#str-char-c-str)

## Operators

| Operator         | Result | Description                                                                                          |
| ---------------- | ------ | ---------------------------------------------------------------------------------------------------- |
| char **+** char  | str    | Returns a string of two characters.                                                                  |
| char **+** str   | str    | Returns a string as the result of adding a string to a character.                                    |
| str **+** char   | str    | Returns a string as the result of adding a character to the string.                                  |
| char **=** char  | char   | Assignment operator.                                                                                 |
| str **+=** char  | str    | Appends a character to the string                                                                    |
| char **==** char | bool   | Returns *true* if the two characters are equal and *false*, otherwise.                               |
| char **>** char  | bool   | Returns *true* if the first character is greater than the second and *false*, otherwise.             |
| char **<** char  | bool   | Returns *true* if the first character is less than the second and *false*, otherwise.                |
| char **!=** char | bool   | Returns *true* if the two characters are not equal and *false*, otherwise.                           |
| char **>=** char | bool   | Returns *true* if the first character is greater than or equal to the second and *false*, otherwise. |
| char **<=** char | bool   | Returns *true* if the first character is less than or equal to the second and *false*, otherwise.    |

## Functions

### int( char c ) int

The *int* function returns the numeric value of a character.

### str(char c) str

The *str* function converts a character to a string and returns this string.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.gentee.org/stdlib/char.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
