val()

文字列の最近似数値形式を返します。

文法:
variable = val( string )

用例:
'n へ 18 を代入
n = val( "18xx" )

str$() コマンドを参照してください。