Density of a substance is defined as