String-Related Functions String-Related Functions The value returned from a string function may be another string or a numeric value. String-Related Functions eV+Language User's Guide, v2.x, 18318-000 Rev A Page 82 Keyword Function ASC Return a single character value from within a string. $CHR Return a one-character string having a given value. DBLB Return the value of eight bytes of a string interpreted as an IEEE double-precision floating-point number. $DBLB Return an 8-byte string containing the binary representation of a real value in double-precision IEEE floating-point format. $DECODE Extract part of a string as delimited by given break characters.
$ENCODE Return a string created from output specifications. The string produced is similar to the output of a TYPE instruction. FLTB Return the value of four bytes of a string interpreted as an IEEE single-precision floating-point number. $FLTB Return a 4-byte string containing the binary representation of a real value in single-precision IEEE floating-point format. $INTB Return a 2-byte string containing the binary representation of a 16- bit integer. LEN Return the number of characters in the given string. LNGB Return the value of four bytes of a string interpreted as a signed 32- bit binary integer. $LNGB Return a 4-byte string containing the binary representation of a 32- bit integer.
$MID Return a substring of the specified string. PACK Replace a substring within an array of (128-character) string variables or within a (non-array) string variable.