9.3.2 ACHAR (I)

Description:  Returns the character in a specified position of the ASCII character set, even if the processor's default character set is different. It is the inverse of the IACHAR function. In Compaq Fortran, ACHAR is equivalent to the CHAR function. 
Class:  Elemental function; Generic 
Arguments:  I must be of type integer. 
Results:  The result type is character with length 1; it has the kind parameter value of KIND ('A').

If I has a value within the range 0 to 127, the result is the character in position I of the ASCII character set. ACHAR (IACHAR(C)) has the value C for any character C capable of representation in the processor. 

Examples

ACHAR (71) has the value 'G'.

ACHAR (63) has the value '?'.


Previous Page Next Page Table of Contents