get the full number contining the character at i,j
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in) | :: | i | |||
| integer, | intent(in) | :: | j |
integer(ip) function get_number(i,j) !! get the full number contining the character at i,j integer,intent(in) :: i,j jstart = j jend = j do if (array(i,jstart-1)=='.' .or. is_symbol(array(i,jstart-1))) exit jstart = jstart - 1 end do do if (array(i,jend+1)=='.' .or. is_symbol(array(i,jend+1))) exit jend = jend + 1 end do get_number = int(array(i, jstart:jend)) end function get_number