float.conjugate() Conjugate
Last updated: 2026-09-22
float.conjugate() Conjugate
float.conjugate() returns the float itself; kept for the complex-number interface.
| Category | Number Methods |
|---|---|
| Kind | Built-in Type Method |
| Python Version | all |
📝 Syntax
float.conjugate()
Returns:float. Returns the float 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:
3.5
💡 Related Cases
More case studies coming soon — check back later.
❓ FAQ
QWhat does conjugate() return?
AThe float itself.
QWhy does this method exist?
ALike int.conjugate(), for compatibility with the complex interface.
QDoes conjugate() need arguments?
ANo; call it directly: (3.5).conjugate() returns 3.5.