Create Atof function