# ascii() function

The ascii() function converts a string
of EBCDIC-encoded characters into their equivalent ASCII values.

## Syntax

```
ascii(exp)
```

## Parameter(s)

| exp | String of EBCDIC-encoded characters to convert. |
| --- | --- |

## Description

The ascii() function is the inverse of the ebcdic() function.

Note: The ascii() function cannot determine whether
the string being passed to it is already ASCII or not. Passing an
ASCII string through the ascii() function produces
undefined results.

## See also

- [ASCII](https://d3codex.com/definitions/ascii/)
- [ASCII](https://d3codex.com/definitions/ascii/)
- [ebcdic() function](https://d3codex.com/pickbasic-flashbasic/ebcdic-function/)
- [BASIC functions](https://d3codex.com/pickbasic-flashbasic/basic-functions/)
- [Statements and functions](https://d3codex.com/pickbasic-flashbasic/statements-and-functions/)

---
Source: https://d3codex.com/pickbasic-flashbasic/ascii-function/ - part of the D3Codex reference.
