ID EN
Decimal

logb

Python 3.11

For a nonzero number, return the adjusted exponent of its operand as a Decimal instance. If the operand is a zero then Decimal('-Infinity') is returned and the DivisionByZero flag is raised. If the operand is an infinity then Decimal('Infinity') is returned.

Syntax

PYTHON
logb(context=None)

See Also

Decimal DivisionByZero