HP Fortran Programmer's Reference (September 2007)

Intrinsic procedures
Intrinsic procedure specifications
Chapter 11 515
Result type/
type parameters
The same as A except that if A is complex, the result is real.
Result value(s)
•IfA is of type integer or real, the value of the result is |A|.
•IfA is complex with value (
x
,
y
), the result is equal to a processor-dependent
approximation to the square root of (
x
2
+
y
2
).
Specific forms
BABS, CABS, CDABS, DABS, HABS, QABS, ZABS.
ACHAR(I)
Description
Returns the character in a specified position of the ASCII collating sequence. It is the inverse
of the IACHAR function.
Class
Elemental function.
Argument
I must be of type integer.
Result type/
type parameters
Character of length one with kind type parameter value KIND(’A’).
Result value
If I has a value in the range 0 <= I <= 127, the result is the character in position I of the
ASCII collating sequence, provided the processor is capable of representing that character;
otherwise, the result is processor-dependent.
If the processor is not capable of representing both uppercase and lowercase letters and I
corresponds to a letter in a case that the processor is not capable of representing, the result is
the letter in the case that the processor is capable of representing.