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