# VAL()

Convert a number from a character type to numeric

Syntax

  VAL( <cNumber> ) --> nNumber

Arguments

  <cNumber> Any valid character string of numbers.

Returns

  <nNumber> The numeric value of <cNumber>

Description

  This function converts any number previosly defined as an character expression <cNumber> into a numeric expression.
  This functions is the oppose of the STR() function.

Examples

          ? VAL( '31421' ) // 31421
    Tests
          See regression test

Status

  Ready

Compliance

  This function is Ca-Clipper compatible

Platforms

  All

Files

  Library is rtl

See Also

- STR()
- TRANSFORM()