function c = r8_sign_char ( r8 )

%*****************************************************************************80
%
%% r8_sign_char() returns the sign of an R8 as a character.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    28 April 2012
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    real R8, the value whose sign is of interest.
%
%  Output:
%
%    character C, is '-', '0', or '+'.

  if ( r8 < 0.0 )
    c = '-';
  elseif ( r8 == 0.0 )
    c = '0';
  else
    c = '+';
  end

  return
end
