fdoc

functionis_digitelemental

elemental logical function is_digit(c)

True if c is a digit.

Arguments

NameTypeIntentAttributesDescription
ccharacter(len=1)in

the character

Result

NameTypeAttributesDescription
is_digitlogical

Called by

Source

Show the code
elemental logical function is_digit(c)
    character, intent(in) :: c  !! the character

    is_digit = c >= '0' .and. c <= '9'
end function is_digit