|
VAL()
Abbreviation: V <SHIFT+A>
TYPE: Numeric Function
FORMAT: VAL (<string>)
Action: Returns a numeric VALue representing the data in the
<string> argument. If the first non-blank character of the
string is not a plus sign (+), minus sign (-), or a digit the
VALue returned is zero. String conversion is finished when the
end of the string or any non-digit character is found (except
decimal point or exponential e).
EXAMPLE of VAL Function:
10 INPUT#1, NAM$, ZIP$
20 IF VAL(ZIP$) < 19400 OR VAL(ZIP$) > 96699 THEN PRINT
NAM$ TAB(25) "GREATER PHILADELPHIA"
|