dcsimg
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Web
Expertise: Beginner
Apr 10, 2020

Check for Finite Numbers in Python

Use the math module's isfinite method to determine if a value is finite or not. If it is not a number, the function returns false.

See below for an example:

math.isfinite(10) returns True
Srinath M S
 
Thanks for your registration, follow us on our social networks to keep up-to-date