CHAR(I, KIND)

Purpose

Returns the character in the given position of the collating sequence associated with the specified kind type parameter. It is the inverse of the function ICHAR.

Class

Elemental function

Argument type and attributes

I
must be of type integer with a value in the range IBM Extension Begins0 <= I <= 127. IBM Extension Ends
KIND (optional)
must be a scalar integer initialization expression.

Result type and attributes

Result value

Examples

CHAR (88) has the value 'X'.

Specific Name Argument Type Result Type Pass As Arg?
CHAR any integer default character yes  1 
Notes:
  1. IBM Extension: the ability to specify a nondefault integer argument.
  2. XL Fortran supports only the ASCII collating sequence.