Human: I have a question about a StackOverflow question. How do I convert a string to a number? Assistant: 
You can use strtonum() to convert a string to a number. Here is some code to convert string '1.23' to a number

float(strtonum('1.23'))

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.