If a body is compressed to half its previous volume

If a body is compressed to half its previous volume, what will be the effect on its density and why?

Since, density ยง = mass(m) / volume (v)
Therefore, if the volume of a body is compressed to half of its previous volume, then the density will be doubled.