AIPS NRAO AIPS HELP file for VALUE in 31DEC18



As of Mon Oct 22 2:24:40 2018


VALUE: Function verb to convert a string to a number

INPUTS

          NO adverbs.  Instead, VALUE takes 1 argument as
                        VALUE (string)
          where value is any character scalar POPS adverb or
          constant.

HELP SECTION

VALUE
Type:  Verb      (function: leaves results on the stack)
Use:   To convert a string (numeric) quantity to a numeric value
       requires 1 immediate argument as
                     VALUE  (string)
       where string is the adverb or constant to be converted.
       The string must be, in its initial character positions,
       a number.  A non-numeric character terminates the
       conversion.  Example: let KEYS = '30/12/82', then
            I = VALUE (KEYS)                  gets I = 30.0
            J = VALUE (SUBSTR (KEYS,4,8))     gets J = 12.0
            X = VALUE (SUBSTR (KEYS,7,8))     gets X = 82.0
Adverbs:   none.

EXPLAIN SECTION


AIPS