Decimal.logB

typeof(this) logB(ref DecimalContext ctx) const @safe pure nothrow @nogc

The adjusted exponent of the leading digit as a decimal value (decNumber logb): 0.03 → -2, 1 → 0. Zero signals DIVISION_BY_ZERO with a −∞ result; ±∞ gives +∞; NaNs follow the standard rule. Never rounds.