TXT2NUM

Purpose: Extracts numeric values from a text string.

Format:   TXT2NUM   text variable   numeric variable   < numeric variable >…..

Notes:     Use this statement to set numeric variables  from a text string.  Up to 10 numeric variables may be specified.  Multiple values must be separated by commas or by white space characters.  Invalid numeric expressions will produce unpredictable results.

Example:

$test = “3.14 120 -0.25, .33”

txt2num $test pi a b c

clear
print pi
print a
print b
print c

See Also:  TXT2MEM    MEM2TXT