Python cmath.inf Constant

cmath Methods : Print the positive and negative infinity

Definition and Usage

The cmath.inf constant returns a floating-point positive infinity.

For negative infinity, use -cmath.inf.

The cmath.inf constant is equivalent to float("inf").

Syntax

cmath.inf

Technical Details

Return Value: A float value, representing the value of positive infinity
Python Version: 3.6