Next: ACOS, Previous: ACCESS, Up: Intrinsic Procedures [Contents][Index]
ACHAR— Character in ASCII collating sequence
ACHAR(I) returns the character located at position
in the ASCII collating sequence.
Fortran 77 and later, with KIND argument Fortran 2003 and later
RESULT = ACHAR(I [, KIND])
|I||The type shall be |
|KIND||(Optional) An |
The return value is of type
CHARACTER with a length of one.
If the KIND argument is present, the return value is of the
specified kind and of the default kind otherwise.
program test_achar character c c = achar(32) end program test_achar
See ICHAR for a discussion of converting between numerical values and formatted string representations.
CHAR, IACHAR, ICHAR