Conversion of atoms to grams and moles to grams