Liberty BASIC Help Online

VAL( s$ )
 
VAL(stringExpression)
 
Description:
This function returns a numeric value for stringExpression if stringExpression represents a valid numeric value or if it begins with a valid numeric value.  If not, then zero is returned. 
 
Usage:
 
  print 2 * val("3.14")         Produces:       6.28
 
  print val("hello")            Produces:       0
 
  print val("3 blind mice")     Produces:       3


Copyright (C) 2003 Shoptalk Systems
Liberty BASIC - http://www.libertybasic.com/