Val()
Syntax
Result.q = Val(String$)Description
Converts a string into a quad numeric value. The string may be an integer in decimal, hexadecimal (with '$' prefix) or binary (with '%' prefix) format. The number parsing stops at the first non numeric character.
Parameters
String$ The string to convert.
Return value
The numeric value of the string.
Remarks
Strings holding a 32-bit floats may be converted with ValF() and 64-bit floats with ValD().
Example
Debug Val("1024102410241024") ; will print '1024102410241024'. Debug Val("$10FFFFFFFF") ; will print '73014444031'. Debug Val("%1000") ; will print '8'.
See Also
ValD(), ValF(), Str(), StrF(), StrD()
Supported OS
All