Atomic mass
The atomic mass ("m") is the mass of an atom. Its unit is the unified atomic mass units ("abbr." u) where 1 unified atomic mass unit is defined as of the mass of a single carbon-12 atom, at rest. For atoms, the protons and neutrons of the nucleus account for nearly all of the total mass, and the atomic mass measured in u has nearly the same value as the mass number.
Atomic mass
The relative isotopic mass, then, is the mass of a given isotope (specifically, any single nuclide), when this value is scaled by the mass of carbon-12, when the latter is set equal to 12. Equivalently, the relative isotopic mass of an isotope or nuclide is the mass of the isotope relative to 1/12 of the mass of a carbon-12 atom.