$ENCODE string function or five characters for the exponent. /Fn.m Format values in fixed-point notation (for example, -123.4) in fields n spaces wide, with m digits in the fractional parts. /Gn.m Format values in F format with m digits in the fractional parts if that can be done in fields n spaces wide. Otherwise /En.m format is used. /Hn Format values as hexadecimal integers in fields n spaces wide. /In Format values as decimal integers in fields n spaces wide. /On Format values as octal integers in fields n spaces wide. The following specifiers can be used to insert special characters in the string: /Cn Include the characters carriage return (CR) and line feed (LF) n times.
If the string resulting from the $ENCODE function is output to the terminal, this results in n blank lines if the control specifier is at the beginning or end of the function parameter list; otherwise, n -1 blank lines result. /Un Include the characters necessary to move the cursor up n lines if the resulting string is output to the terminal. (This works correctly only if the TERMINAL parameter is correctly set for the terminal being used.) /Xn Include n spaces. /B Include a character that beeps the terminal if the resulting string is output to the terminal. Example The program statement:
$output = $output+$ENCODE(/F6.2, count) adds a formatted representation of the value of count to the string contained in $output. eV+Language Reference Guide, v2.x, 18319-000 Rev A Page 200