ACHAR — Character in ASCII collating sequence¶
- ACHAR(I)¶
ACHAR(I)returns the character located at positionIin the ASCII collating sequence.- Parameters
I – The type shall be
INTEGER.KIND – (Optional) An
INTEGERinitialization expression indicating the kind parameter of the result.
- Returns
The return value is of type
CHARACTERwith a length of one. If theKINDargument is present, the return value is of the specified kind and of the default kind otherwise.
Standard:Fortran 77 and later, with
KINDargument Fortran 2003 and laterClass:Elemental function
Syntax:RESULT = ACHAR(I [, KIND])
Example:program test_achar character c c = achar(32) end program test_achar
Note:See ICHAR for a discussion of converting between numerical values and formatted string representations.
See also:CHAR, IACHAR, ICHAR