## `numlib::fromAscii` -- decoding of ASCII codes

#### Introduction

If `L` is a list of ASCII codes then `numlib::fromAscii``(L)` returns the string coded by `L`.

#### Call(s)

`numlib::fromAscii(listOfCodes)`

#### Parameters

`listOfCodes` | - | a list of ASCII codes

#### Returns

a string

#### Related Functions

`numlib::toAscii`

#### Details

- ASCII codes of (in MuPAD) non-printable characters, i. e., codes between `0` and `8` and between `11` and `31`, are ignored.
- `numlib::fromAscii` returns an error if its argument is not a list of integers between `0` and `127`, i. e., not a list of legal ASCII codes.

Error: Unexpected 'identifier' [col 3]

#### Example 1

Non-printable characters are ignored, but tabulator and newline characters are decoded.

    >> L := [0,1,2,3,9,10,31,10,9,32,45,32,101,105,110,32,
                   84,101,115,116,32,61,32,97,32,116,101,115,116]:

    >> numlib::fromAscii(L)

                          "\t\n\n\t - ein Test = a test"

#### Changes

- no changes

Do you have questions or comments?
Copyright © SciFace Software GmbH & Co. KG 2000