function i4_floor_test ( )

%*****************************************************************************80
%
%% i4_floor_test() tests i4_floor().
%
%  Licensing:
%
%    This code is distributed under the MIT license. 
%
%  Modified:
%
%    29 September 2014
%
%  Author:
%
%    John Burkardt
%
  r8_lo = -100.0;
  r8_hi =  100.0;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'i4_floor_test():\n' );
  fprintf ( 1, '  i4_floor() evaluates the "floor" of an R8.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '      R8    I4_FLOOR(R8)\n' );
  fprintf ( 1, '\n' );

  for i = 1 : 10
    r8 = r8_lo + ( r8_hi - r8_lo ) * rand ( 1, 1 );
    i4 = i4_floor ( r8 );
    fprintf ( 1, '  %8.4f         %4d\n', r8, i4 );
  end
 
  return
end
