## 9.3.57 IACHAR (C)

Description: | Returns the position of a character in the ASCII character set, even if the processor's default character set is different. In Compaq Fortran, IACHAR is equivalent to the ICHAR function.
Class: | Elemental function; Generic
Arguments: | C must be of type character of length 1.
Results: | The result is of type default integer. If C is in the ASCII collating sequence, the result is the position of C in that sequence and satisfies the inequality (0 <= IACHAR(C) <= 127). The results must be consistent with the LGE, LGT, LLE, and LLT lexical comparison functions. For example, if LLE(C, D) is true, IACHAR(C) .LE. IACHAR(D) is also true.

Examples

IACHAR ( 'Y' ) has the value 89.

IACHAR ( '%' ) has the value 37.

Previous Page Next Page Table of Contents