Programming instructions
Intermec Fingerprint v7.61 – Programmer’s Reference Manual Ed. 7270
Chapter 2 Program Instructions
VAL
Field of Application
 Function returning the numeric representation of a string expression.
Syntax VAL(<sexp>)
<sexp> is the string expression from which the numeric representation 
will be returned.
Remarks
 VAL is the complementary function for STR$.
 VAL  ignores  space  characters  from  the  argument string  to  determine 
the result. 
 If the fi rst character in the string expression is anything else but a digit, a plus 
sign, or a minus sign, the VAL function returns the value 0. 
Example
 In this example, the values of the string variables A$ and B$ are read and 
assigned to the numeric variables A% and B%:
  10   A$="123, MAIN STREET"
  20   A%=VAL(A$)
  30   B$="PHONE 123456"
  40   B%=VAL(B$)
  50   PRINT A$
  60   PRINT A%
  70   PRINT B$
  80   PRINT B%
  RUN
  yields:
  123, MAIN STREET
  123
  PHONE 123456
  0










