is_infinite
pestphp/pest
Supported Versions: PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8
Checks whether a float is infinite
<?php is_infinite
(
float $num
):
bool