function D = flintmaxLike(X)
%FLINTMAXLIKE flintmaxLike codistributed array
%   
%   D = FLINTMAXLIKE(P) is a codistributed scalar with the value of flintmax for the
%   underlyingType of P and matching all other attributes.
%   
%   P must have floating-point underlying type.
%   
%   See also FLINTMAX, CODISTRIBUTED.


%   Copyright 2021 The MathWorks, Inc.

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