Pactera interview question

1. How to convert a string to a number