Returns a numeric value from a character expression composed of numbers.
Syntax
VAL(cExpression)
Returns
Numeric
Arguments
cExpression
Specifies a character expression composed of up to 16 numbers. Rounding occurs if more than 16 numbers are included in cExpression.
Remarks
VAL( ) returns the numbers in the character expression from left to right until a non-numeric character is encountered (leading blanks are ignored). VAL( ) returns 0 if the first character of the character expression isn't a number or a plus sign (+) or minus sign (-).
VAL( ) can be used to convert the character strings returned by the Visual FoxPro SYS( ) functions to numeric values.