function value = r8vec_min_pos ( n, a )

%*****************************************************************************80
%
%% r8vec_min_pos() returns the minimum positive value of an R8VEC.
%
%  Discussion:
%
%    An R8VEC is a vector of R8's.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    08 November 2009
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer N, the number of entries.
%
%    real A(N), the array.
%
%  Output:
%
%    real VALUE, the smallest positive entry.
%
  value = realmax ( );

  for i = 1 : n
    if ( 0.0 < a(i) )
      value = min ( value, a(i) );
    end
  end

  return
end
