int.conjugate() Conjugate
Last updated: 2026-09-22
int.conjugate() Conjugate
int.conjugate() returns the integer itself; kept for the complex-number interface.
| Category | Number Methods |
|---|---|
| Kind | Built-in Type Method |
| Python Version | all |
📝 Syntax
int.conjugate()
Returns:int. Returns the integer itself; kept for the complex-number interface.
Mutates the original:No (returns a new object)
▶ Example
Edit the code, press Run, and see the result in the output panel:
Output:
7
💡 Related Cases
More case studies coming soon — check back later.
❓ FAQ
QWhat does conjugate() return?
AThe integer itself. The conjugate of a real number is itself.
QWhy does this method exist?
AFor compatibility with the complex interface (complex.conjugate()), so that code can uniformly handle int/float/complex.
QDoes conjugate() need arguments?
ANo; call it directly: (5).conjugate() returns 5.