function value = ch_is_digit ( c )

%*****************************************************************************80
%
% CH_IS_DIGIT returns TRUE if the character C is a digit.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    22 February 2010
%
%  Author:
%
%    John Burkardt
%
%  Parameters:
%
%    Input, character C, a character.
%
%    Output, integer VALUE, is TRUE if C is a digit, FALSE otherwise.
%
  if ( '0' <= c && c <= '9' )
    value = true;
  else
    value = false;
  end

  return
end
