Home >>Python cmath Module >Python cmath.infj Constant

Python cmath.infj Constant

Python cmath.infj Constant

Python cmath.infj constant is used to return a complex positive infinity. The return value has a 0 as real part and positive infinity as the imaginary part.

Syntax:
cmath.infj
Here is an example of Python cmath.infj constant:

import cmath 
print (cmath.infj)

Output:
infj