Home » Tip Bank » Web Development
  • Comment on this Article
Language: Web
Expertise: Beginner
Apr 10, 2020

WEBINAR:

On-Demand

Building the Right Environment to Support AI, Machine Learning and Deep Learning


Watch

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
 
Submit a Tip
Browse "Web Development" Tips
Browse All Tips
enable-javascript.com
html-color-codes.info