NAME

val - string to numeric conversion

SYNOPSIS

v = val(StrExpr)

DESCRIPTION

Val returns the numeric value represented by the digits and other characters of its argument StrExpr.  StrExpr may be any string expression.  Val returns 0 (zero) if its argument does not begin with characters that can be interpreted as a numeric value. 

EXAMPLE

The program
	print val("1717 East Ninth Street")
produces
	1717
In this example, val is used to extract the number from an address. 

SEE ALSO

str$

from The Basmark QuickBASIC Programmerís Manual by Lawrence Leinweber