function r8_floor_test ( )

%*****************************************************************************80
%
%% R8_FLOOR_TEST tests R8_FLOOR.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    30 July 2018
%
%  Author:
%
%    John Burkardt
%
  r8_hi = 5.0;
  r8_lo = -3.0;
  test_num = 10;
  seed = 123456789;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8_FLOOR_TEST\n' );
  fprintf ( 1, '  R8_FLOOR rounds an R8 towards -infinity\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '      X         R8_FLOOR(X)\n' );
  fprintf ( 1, '\n' );

  for test = 1 : test_num
    [ r8, seed ] = r8_uniform_ab ( r8_lo, r8_hi, seed );
    value = r8_floor ( r8 );
    fprintf ( 1, '  %10.6f  %10.6f\n', r8, value );
  end

  return
end
