function D = epsLike(X)
%EPSLIKE epsLike codistributed array
%   
%   D = EPSLIKE(P) is a codistributed scalar with the value of eps for the
%   underlyingType of P and matching all other attributes.
%   
%   P must be of floating-point underlying class.
%   
%   See also EPS, CODISTRIBUTED.


%   Copyright 2021 The MathWorks, Inc.

if ~isfloat(X)
    error(message("MATLAB:eps:invalidPrototype"));
end
D = buildScalarLike(@eps, X);