is_infinite

PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8
is_infinite - Finds whether a value is infinite

is_infinite( float$num ): bool

Returns true if num is infinite (positive or negative), like the result of log(0) or any value too big to fit into a float on this platform.

Parameters

num

The value to check

Return Values

true if num is infinite, else false.

Related Functions

Example of is_infinite

Show all examples for is_infinite

PHP Version:


Function is_infinite:

Mathematical Functions Functions

Most used PHP functions