RSTRNG converts a double-precision variable to a character string.
Use
Called By
Any user-written subroutine
Prerequisite
None
Calling Sequence
CALL RSTRNG (reel, string, length, istat)
Input Argument
reel | The double-precision number to be converted. |
Output Arguments
istat | An integer variable indicating the success or the reason for the failure of the call to RSTRNG.  |
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, removes all leading blank spaces) and retains all other blank spaces. |
Extended Definition
RSTRNG converts a double-precision number to the characters representing that number. One purpose of RSTRNG is to provide the CONSUB driver subroutine with a character representation of a real number. This is necessary because the MODIFY execution control subroutine requires commands in the form of a character string that can include real numbers (for example, data). The double-precision variable and the character string representing the number appear identical when printed.
Tip: | If the dimension of the string is CHARACTER*12 or longer, the string can hold any real number. |