[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
VAL                      Numeric Value of a String

 y = VAL(stringexpr)

    Returns the numeric value represented by a string expression.

  stringexpr    A string expression.

   ----------------------------------------------------------------------

      Notes:    VAL attempts to extract a number from the first characters
                of its argument. In doing so, it ignores leading blanks,
                tabs, and line feeds, and treats a single hyphen as
                signifying negation. For example, VAL("   -32 Main
                Street") returns -32.

                If the first character in the argument (or the first
                character following all space and tab characters) is a
                letter, VAL returns 0. Thus, for example, VAL("Yomama")
                returns 0.

See Also: ASC STR$
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson