ACHAR is a CHARACTER intrinsic function.
This function takes an integer number and returns the character representation corresponding to that number. For numbers less than 128 the result will be the Ith character of the ASCII sequence. For numbers greater than 128 the result is machine dependent.
achar (n)
Where n must be an INTEGER argument. Note: Achar must return its output value to a character variable
There are no optional arguments.
If you had the following line of code, with string being a character variable:
string = achar(64)
The character stored in string would be @.
lecture 25
examples
Written by Jason Wehr : jcw142@psu.edu and Maintained by John Mahaffy : jhm@cac.psu.edu