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



Click to Enlarge


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

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250