function value = ch_is_digit ( c )

%*****************************************************************************80
%
% ch_is_digit() is true if the character C is a digit.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    22 January 2025
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    character C: a character.
%
%  Output:
%
%    integer VALUE: true if C is a digit, false otherwise.
%
  if ( '0' <= c && c <= '9' )
    value = true;
  else
    value = false;
  end

  return
end
