You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: floor.m
    path of file: ./repos/chebfun/@chebfun
    
    the code of the file until where you have to start completion: function f = floor(f)
%FLOOR   Pointwise floor function of a CHEBFUN.
%   G = FLOOR(F) returns the CHEBFUN G such that G(X) = FLOOR(F(x)) for each x
%   in F.domain. 
%
%   If F is complex, then the G = FLOOR(REAL(F)) + 1i*FLOOR(IMAG(F)).
%
% See also CEIL, ROUND, FIX.

% Copyright 2017 by The University of Oxford and The Chebfun Developers.
% See http://www.chebfun.org/ for Chebfun information.

    
function f = floor(f)
%FLOOR   Pointwise floor function of a CHEBFUN.
%   G = FLOOR(F) returns the CHEBFUN G such that G(X) = FLOOR(F(x)) for each x
%   in F.domain. 
%
%   If F is complex, then the G = FLOOR(REAL(F)) + 1i*FLOOR(IMAG(F)).
%
% See also CEIL, ROUND, FIX.

% Copyright 2017 by The University of Oxford and The Chebfun Developers.
% See http://www.chebfun.org/ for Chebfun information.

% Deal with the trivial empty case:
if ( isempty(f) )
    return
end