replace atof in Quantity