HTBasic Help
×
Menu
Index

VAL

Converts a string into a numeric value.
 
 VAL( string-expression )
 
Usage:
I=VAL(Response$)
IF VAL(SYSTEM$("VERSION:OS"))<3 THEN CALL Alternate
Example: VAL.BAS
Description:
There must be a digit, a plus or minus sign or a decimal point as the first non-blank character of the string. The remaining characters are scanned until a non-numeric character is seen. If an E is present the characters must form a valid number in scientific notation format. VAL is the opposite of the VAL$ function.
See Also: