Python‎ > ‎integer‎ > ‎

int.conjugate()

http://www.adilwaseem.com/

Introduction
The function will remove parenthesis from the number.

Syntax
(x).conjugate()

Parameters
x=number

Examples
The output returns as follow:
 >>> (5).conjugate()
5
>>> x=(5)
>>> x.conjugate()
5

complex.conjugate()
The method return with the complex conjugate.
 >>> complex(15+0j).conjugate()
(15-0j)

The method returns the output as:
 >>> complex(2255888+0j).conjugate()
(2255888-0j)

Comments