is_finite(): to find out legal finite number or not

Check whether a float is finite

is_finite() returns true when a floating-point value is neither infinite nor NAN.

$value = 25.5;
var_dump(is_finite($value)); // bool(true)

This is the recommended starting pattern. The detailed examples below are retained and modernized for additional variations and explanation.

<?Php
echo is_finite(2); Output 1 
echo "<br>";
echo is_finite(5/10); Output 1 
echo "<br>";
echo is_finite(log(0));
?>
Syntax
bool is_finite ( float $input )
ParameterDESCRIPTION
$inputRequired : Number to check.
The output is TRUE if $input is legal finite number on this platform, else False.
Math Functions is_infinite(): Finds whether a value is infinite or not base_convert(): Convert number From any base to other
decbin() Binary equivalent of decimal number


Subscribe to our YouTube Channel here



plus2net.com











PHP video Tutorials
✖
We use cookies to improve your browsing experience. . Learn more
HTML MySQL PHP JavaScript ASP Photoshop Articles Contact us
© 2000-2026 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer