Harbour Reference Guide

 

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

 




[Source Forge]

Other Docs Categories

Advantage Database RDD
Array
Binary conversion
Classes
Code Block
Console input
Conversion
Conversion Tools
DOS
Data input and output
Database
Database Tools
Date
Dos Tools
Environment
Error recovery
Events
File management
GT
Harbour Tools
Internal
Low Level
Math
Misc
Miscellaneous
Nation
Object manipulation
Operating System Specific
Parameter Checks
String Tools
Strings
TBrowse Method
TBrowse class
Terminal
Time
Utility
Variable Management

 

Last updated on 2001/07/30