public static function isFloat($object, $native = false)
    {
        return $native
            ? is_float($object)
            : is_float($object) || $object instanceof \SplFloat;
    }
public static function isFloat($object, $native = false)
    {
        return $native
            ? is_float($object)
            : is_float($object) || $object instanceof \SplFloat;
    }
public static function isFloat ( $ object , $ native = false ) { return $ native ? is_float ( $ object ) : is_float ( $ object ) || $ object instanceof \ SplFloat ; }
Returns true if the object is a float. If the optional native parameter is set to true, it will only return true
if object is a native float.

@category Object Functions

@param mixed $object the object
@param bool $native optional, if true will not consider instances of SplFloat as integers

@return bool
Returns true if the object is a float . If the optional native parameter is set to true it will only return true if object is a native float .