Function description: atof will scan the parameter nptr string, skip the leading space character, start the conversion until it encounters numbers or positive and negative symbols, and then end the conversion when it encounters non-numbers or the end of the string, and return the result. The parameter nptr string can contain symbols, decimal points or Ee to represent the exponential part.