Float Methods

float.conjugate()

Return the conjugate of a real-valued float. Its numeric value is unchanged because there is no imaginary component. This method supports code that works uniformly with real and complex numbers. It does not negate the value or convert it to complex.

Formal Syntax & Structure

python syntaxpython
value.conjugate()

Return Value

float

Numeric conjugate.

Working Example

Example Snippetpython
value = -2.5print(value.conjugate())print(type(value.conjugate()).__name__)
Python Reference