Integer Attributes
int.denominator
For an integer the denominator of its exact rational representation is always 1, including for zero and negative integers. This is a read-only attribute, accessed without parentheses. Its value has type int for the built-in int receiver. Assignment is not supported.
Formal Syntax & Structure
python syntaxpython
value.denominatorReturn Value
int
Value obtained by attribute access.
Working Example
Example Snippetpython
value = -7print(value.denominator)print(type(value.denominator).__name__)