Function Type:

ACHAR is a CHARACTER intrinsic function.

Function Purpose:

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.

Required Arguments:

achar (n)

Where n must be an INTEGER argument. Note: Achar must return its output value to a character variable

Optional Arguments:

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 @.

For more information and examples see:

lecture 25


Up one level / Home

Written by Jason Wehr : and Maintained by John Mahaffy :