function value = i4mat_width ( m, n, a )

%*****************************************************************************80
%
%% I4MAT_WIDTH returns the printing width of an I4MAT.
%
%  Discussion:
%
%    The width of an I4MAT is simply the maximum of the widths of
%    its entries.
%
%    The width of a single integer is the number of characters 
%    necessary to print it.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license. 
%
%  Modified:
%
%    08 March 2016
%
%  Author:
%
%    John Burkardt
%
%  Parameters:
%
%    Input, integer M, N, the dimensions of the array.
%
%    Input, integer A(M,N), the array.
%
%    Output, integer VALUE, the width of the array.
%
  value = 0;

  for j = 1 : n
    for i = 1 : m
      value = max ( value, i4_width ( a(i,j) ) );
    end
  end

  return
end
