function value = i4vec_amin ( n, a )

%*****************************************************************************80
%
%% I4VEC_AMIN returns the smallest magnitude in an I4VEC.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license. 
%
%  Modified:
%
%    14 May 2005
%
%  Author:
%
%    John Burkardt
%
%  Parameters:
%
%    Input, integer N, the number of entries to be checked.
%
%    Input, integer A(N), the vector to be checked.
%
%    Output, integer VALUE, the value of the smallest magnitude.
%
  value = min ( abs ( a(1:n) ) );

  return
end
