Microsoft interview question

Convert a string of digits into a float.