Pergunta de entrevista da empresa Amdocs

He asked me to write a code to convert a string to float integer.