ID EN
Math

isinf

Python 3.11

Return True if x is a positive or negative infinity, and False otherwise.

Syntax

PYTHON
math.isinf(x)