val()

Return closest numeric representation of a string.

Syntax:
variable = val( string )

Example:
'set n to 18
n = val( "18xx" )

See also str$() command.