ToNumber(value)The function converts any kind of value to numeric value. Usually conversion is performed on the fly, and you rarely need to use this function. In the example below we convert string values to numeric:
num1 = ToNumber("10.5") ' converted as 10.5
num2 = ToNumber("10.a") ' converted as 0, because "10.a" is not a number
DrawText(10, 10, num1) ' prints "10.5"
DrawText(10, 30, num2) ' prints "0"
See also: