Val()
Syntax
Result.l = Val(String$)Description
Transform a string into a numeric value. The string can be an integer in decimal, hexadecimal (with '$' prefix) or binary (with '%' prefix) format.
Note: Strings containing a float value should be converted with ValF(), doubles with ValD() and quads with ValQ().
Example:Debug Val("1024") ; Will print 1024. Debug Val("$FF") ; Will print 255. Debug Val("%1000") ; Will print 8.
Supported OS
All