DCL:MISC£±:FMTLIB: Conversion of Numeric Values to Character Strings *:Explanation of Subroutines
Converts a floating-point value into a character-string according to the character format specification. There is also an option for automatically generating a format specification that will restrict the length of the string to less than or equal to 8 characters (less than or equal to 3 significant digits).
CALL CHVAL(CFMT,VAL,CVAL)
CFMT (C *( *)) The character format specification or the option interpreted by CHVAL. When the first 4 characters of CFMT begins with '(', it is recognized as a character format specification. In all other cases, the following 4 specifications can be chosen for the option. 'A': automatically generate a format specification. 'B': 'A' plus remove the decimal point and all trailing "0"s. 'C': 'B' plus remove all zeros in front of the decimal point. 'D': 'C', however, only when exponential form is used. For example, specify 'A', '(F6.1)' for CFMT. VAL (R) The floating-point value to convert into character string. CVAL (C *( *)) Returns the characterized floating-point value. An argument longer than or equal to 8 characters.