The VAL() function converts a string to a floating point number.
VAL()
DECLARE FUNCTION VAL AS FLOAT (instr$ AS STRING) SHARED STATIC INLINE
DIM pi AS FLOAT pi = VAL("3.14159")