Density represents the mass per unit of volume of a substance.
Since you do not have a volume expressed in your equation, I'll assume you mistyped it. The mass of the substance is expressed in grams, which can be used for density, but
A proper unit for volume would be
This means that a cube with the dimensions