chr: and ord:

Function:

chr: converts an integer (representing the collating sequence number of the character set) into a character. ord: converts a character into the collating sequence number. chr: and ord: are abbreviations for the operations 'character' and 'ordinate'.

Syntax:

	chr:(integer) and ord:(character)

integer is the collating sequence number of the character set in use. For the ASCII character set these numbers range from 0 to 127, and for ebcdic 0 to 255.

character is the literal character to be converted to the collating sequence number of the character set.

Examples:

	ord:(A) is replaced by 65 (ASCII) or 193 (ebcdic)
	chr:(64) is replaced by @ (ASCII) or space (ebcdic).