function value = r8mat_is_integer ( m, n, a )

%*****************************************************************************80
%
%% r8mat_is_integer() is TRUE if all entries of an R8MAT are integer.
%
%  Discussion:
%
%    An R8MAT is an MxN array of R8's.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    18 August 2018
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer M, N, the number of rows and columns.
%
%    real A(M,N), the array.
%
%  Output:
%
%    logical VALUE, is true if all entries are integer.
%
  value = all ( a(1:m,1:n) == round ( a(1:m,1:n) ) );

  return
end
