VAL real-valued function 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 255 Related Keywords ASC real-valued function $ENCODE string function FLTB real-valued function INTB real-valued function LNGB real-valued function eV+Language Reference Guide, v2.x, 18319-000 Rev A Page 558