Conversion between character string and numbers

Often it is necessary to convert a Fortran character string into a number (integer or real) or vice versa. For example, routine IGMENU returns some parameters as character strings and it is often necessary to convert these into numbers. Also, to print graphically the result of a computation with ITX it is necessary to convert a number into a character string. The routines described in this paragraph allow these kinds of conversions.

Character to integer

                       +--------------------------+
                       |CALL  IZCTOI (CHVAL,IVAL*) |
                       +--------------------------+
                                  
Action: Converts the character string CHVAL into the integer IVAL. Parameter Description:
CHVAL
Character string.
IVAL
Integer.

Character to real

                       +--------------------------+
                       |CALL  IZCTOR (CHVAL,RVAL*) |
                       +--------------------------+
                                  
Action: Converts the character string CHVAL into the real RVAL. Parameter Description:
CHVAL
Character string.
RVAL
Real.

Integer to character

                       +--------------------------+
                       |CALL  IZITOC (IVAL,CHVAL*) |
                       +--------------------------+
                                  
Action: Converts the integer IVAL into character string CHVAL. Parameter Description:
IVAL
Integer.
CHVAL
Character string.

Real to character

                       +--------------------------+
                       |CALL  IZRTOC (RVAL,CHVAL*) |
                       +--------------------------+
                                  
Action: Converts the real RVAL into character string CHVAL. Parameter Description:
RVAL
Real.
CHVAL
Character string.