Articles → Python → Isinf Function In Python

Isinf Function In Python






Purpose





Example


import math

print("Is number infinite: ", math.isinf(float("inf")))

print("Is number infinite: ", math.isinf(1))



Output


Picture showing the output of the isinf function in python



Posted By  -  Karan Gupta
 
Posted On  -  Thursday, April 18, 2019

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250