Articles → Python → Isinf Function In PythonIsinf Function In PythonIn this article, we will discuss the isinf function in Python.Purpose The isinf returns true if number is infinite else returns false.Example import math print("Is number infinite: ", math.isinf(float("inf"))) print("Is number infinite: ", math.isinf(1))Output Posted By - Karan Gupta Posted On - Thursday, April 18, 2019 Query/Feedback Your Email Id** Subject* Query/Feedback Characters remaining 250**
import math print("Is number infinite: ", math.isinf(float("inf"))) print("Is number infinite: ", math.isinf(1))
Query/Feedback