[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
+---------------------------------+
|               VAL               |
+---------------------------------+
VAL(<expC>)

-----------------------------------
Returns numeric value of <expC> composed of digits.
Return value - Numeric
-----------------------------------

VAL() returns a numeric value that corresponds to the value of the
digits contained in a character expression.  Moving from left to right,
VAL() processes the digits in the character expression until a
non-numeric character is encountered (leading blanks are ignored).  If
the first character of the character expression is not a digit, VAL()
returns 0.

<expC>
        Include a character expression <expC> composed of digits in VAL().  The
corresponding numeric value is returned.

+---------------------------------+
|             Examples            |
+---------------------------------+
STORE '12' TO A
STORE '13' TO B
? VAL(A) + VAL(B)

STORE '1.25E3' TO C
? 2 * VAL(C)

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

See Also:  SET DECIMALS, STR()

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

See Also: SET DECIMALS STR()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson