ISTRNG

ISTRNG converts a number from integer format to character format. The character string representing the integer is always left justified.

Use

Called By

Any user-written subroutine

Prerequisite

None

Calling Sequence

CALL ISTRNG (number, string, length, istat)

Input Argument

 
number
An integer variable that specifies the integer to be converted.

Output Arguments

 
istat
An integer variable indicating the success or the reason for the failure of the call to ISTRNG.
length
An integer variable that returns the number of nonblank characters in the converted string.
string
A character string that represents the number. Adams Solver left justifies the converted string (that is, it removes all leading blank spaces).

Extended Definition

One purpose of ISTRNG is to provide the CONSUB driver subroutine with a character representation of an integer. This is necessary because the MODIFY execution control subroutine requires commands in the form of a character string that may include integers (for example, statement identifiers). The integer and the character string representing the integer appear identical when printed.
 
Tip:  
If the dimension of the string is CHARACTER*12 or longer, the string can hold any integer defined on a 64-bit machine.