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_heart := character( 10084 );
display sp_heart ;

will produce the following in the listing file:

sp_heart := "❤" ;

See also