decimal.Decimal.logb¶
-
Decimal.logb(context=None)[source]¶ Returns the exponent of the magnitude of self’s MSD.
The result is the integer which is the exponent of the magnitude of the most significant digit of self (as though it were truncated to a single digit while maintaining the value of that digit and without limiting the resulting exponent).