V+ Language Reference Guide, v
VAL real-valued function
Syntax
VAL (string)
Function
Return the real value represented by the characters in the input string.
Usage Considerations
The input string can be a number in scientific notation.
The input string can contain leading number base indicators (^H, for example).
The input string can contain a + or - sign before the numeric part of the string, but after any optional base indicator.
Any character that cannot be interpreted as part of a number or as a base indicator marks the end of the characters that are converted.
Parameter
string String constant, variable, or expression. Examples
VAL("123 Elm Street") ;Returns the real value 123 VAL("1.2E-2") ;Returns the real value 0.012 VAL("^HFF") ;Returns the real value 255Related Keywords
ASC real-valued function
$ENCODE string function
FLTB real-valued function
INTB real-valued function
LNGB real-valued function
Submit comments to: techpubs@adept.com
Last modified on: 3/27/2012
Copyright © 1994 - 2012. Adept Technology, Inc.
