src/Validators.php
public static function isFloat($float): bool
    {
        if (!\is_scalar($float)) {
            return false;
        }

        return (string)((float)$float) === (string)$float;
    }
public static function isFloat($float): bool
    {
        if (!\is_scalar($float)) {
            return false;
        }

        return (string)((float)$float) === (string)$float;
    }
public static function isFloat ( $ float ) : bool { if ( ! \ is_scalar ( $ float ) ) { return false ; } return ( string ) ( ( float ) $ float ) === ( string ) $ float ; }
Check for a float number validity
@param float|mixed $float Float number to validate
@return bool Validity is ok or not
Check for a float number validity