Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Finds whether the type of a variable is float
Alias is_double
<?php is_float(mixed $value): bool
<?php             return $array->offsetExists($key);

        }



        if (is_float($key)) {

            $key = (string) $key;

        }
<?php     {

        $value = $this->get($key, $default);



        if (! is_float($value)) {

            throw new InvalidArgumentException(

                sprintf('Configuration value for key [%s] must be a float, %s given.', $key, gettype($value))

            );
<?php             return 'null';

        } elseif ($binary) {

            return $this->escapeBinary($value);

        } elseif (is_int($value) || is_float($value)) {

            return (string) $value;

        } elseif (is_bool($value)) {

            return $this->escapeBool($value);
<?php             return 0;

        }



        if (is_int($result) || is_float($result)) {

            return $result;

        }
<?php     public function __construct($chances, $outOf = null)

    {

        if ($outOf === null && is_float($chances) && $chances > 1) {

            throw new RuntimeException('Float must not be greater than 1.');

        }