The first ones are termed visual distance moduli and are denoted by {(m - M)}_{v} while the second ones are called true distance moduli and denoted by {(m - M)}_{0}.
Visual distance moduli are computed by calculating the difference between the observed apparent magnitude and some theoretical estimate of the absolute magnitude.