Function Character(n)

Character

The function Character returns the string consisting of a single character whose ordinal number is the value of the argument.

Character(
     n            ! (input) a numeric expression
     )

Arguments

n

A numeric expression in the range \(\{ 0 .. 55295 \} \cup \{ 57344 .. \}\).

Return Value

The function Character returns a string of length 1. Exception: when the value 0 is passed it returns the empty string.

Example

The code:

sp_pct := character( 37 );
display sp_pct ;

will produce the following in the listing file:

sp_pct := "%" ;

References