Well, if you know things like the mass of a proton/neutron/electron and how many there are in a particular isotope of U then you can work out through simple addition and multiplication. Or you could do it through knowing the mass of one mole of U and avagadro's number.