The cmath module defines some useful constants, among them, is the inf
constant. The inf
constant is a floating point value representing the mathematical notion of infinity.
In mathematics, infinity is a concept describing something that is limitless or endless. It is usually referred to as a number greater than any real or natural number.
cmath.inf
copy
The value returned is equivalent to float('inf')
.