class astropy.units.DexUnit(physical_unit=None, function_unit=None)[source]

Bases: astropy.units.function.logarithmic.LogUnit

Logarithmic physical units expressed in magnitudes

physical_unit : Unit or string

Unit that is encapsulated within the magnitude function unit. If not given, dimensionless.

function_unit : Unit or string

By default, this is dex`, but this allows one to use an equivalent unit such as ``0.5 dex.