I am relatively new to Fortran and could not figure out how I can convert a string to an integer. An example:
integer x
character*5 st
st = '12abo'
x = st(1:2)
but seemingly this does not work. Any ideas?
I am relatively new to Fortran and could not figure out how I can convert a string to an integer. An example:
integer x
character*5 st
st = '12abo'
x = st(1:2)
but seemingly this does not work. Any ideas?