ACHAR

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.

Results:

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

examples

Up one level / Home


Written by Jason Wehr : jcw142@psu.edu and Maintained by John Mahaffy : jhm@cac.psu.edu