Futurebasic/Language/Reference/val

Syntax
numericValue = VAL(string$)

Description
If  contains the characters of a number in any of the standard FB formats (decimal, hex, octal or binary),   returns the number's value.

ignores leading spaces in. When it finds a non-space character, it evaluates the remaining characters in  until it encounters a character which is not part of the number. Thus, for example, the string " " would be evaluated as 3245.6, but the string " " would be evaluated as 32. If the first non-space character in  can't be recognized as part of a number,   returns zero. performs the opposite of functions such as,  ,  ,   and.

Example
DATA &quot;-3.2&quot;, &quot;1.4E2&quot;, &quot;&amp;4C1&quot;, &quot;9+7&quot; FOR i = 1 TO 4 READ s$  PRINT s$, VAL(s$) NEXT

program output: represents an integer, consider using the  function, which is faster.