Function Block CHR

The Function Block CHR generates a single-byte character string from a number.

Input

The input expects a number as an integer.

Output

The output returns a single-character string in a single-byte encoding such as ASCII, ISO-8859 or Windows 1252 by passing the position of the desired character in the encoding assignment table. However, it should be noted that this function ignores the string encoding and, in particular, no Unicode code point can be passed to generate a string in a multi-byte encoding such as UTF-8 or UTF-16.

Values outside the valid range (0..255) are bitwise ANDed with 255.

See Also