function i4_is_integer_test ( )

%*****************************************************************************80
%
%% i4_is_integer_test tests i4_is_integer.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    07 April 2020
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'i4_is_integer_test\n' );
  fprintf ( 1, '  i4_is_integer is TRUE if i4 stores an integer value.\n' );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Example 1: Obviously integer:\n' );
  fprintf ( 1, '\n' );
  a = 6;
  a
  if ( i4_is_integer ( a ) )
    fprintf ( 1, '  A is an integer value.\n' );
  else
    fprintf ( 1, '  A is NOT an integer value.\n' );
  end

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Example 2: Obviously NOT integer:\n' );
  fprintf ( 1, '\n' );
  a = 6.5;
  a
  if ( i4_is_integer ( a ) )
    fprintf ( 1, '  A is an integer value.\n' );
  else
    fprintf ( 1, '  A is NOT an integer value.\n' );
  end

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Example 3: Not Integer, Not obvious:\n' );
  fprintf ( 1, '\n' );
  a = 6 + sqrt ( eps );
  a
  if ( i4_is_integer ( a ) )
    fprintf ( 1, '  A is an integer value.\n' );
  else
    fprintf ( 1, '  A is NOT an integer value.\n' );
  end

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Example 4: Not Integer, Not obvious:\n' );
  fprintf ( 1, '\n' );
  a = 300000000.2;
  a
  if ( i4_is_integer ( a ) )
    fprintf ( 1, '  A is an integer value.\n' );
  else
    fprintf ( 1, '  A is NOT an integer value.\n' );
  end

  return
end
