Jedive #1 you don't need a Val function. The string "2.7182" is automatically converted into the floating number 2.7182 when you assing the string to a float variable, and would be converted to 2 if you assign it to an integer variable.