1

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?

Jonathan Leffler
  • 698,132
  • 130
  • 858
  • 1,229
Huzo
  • 1,572
  • 17
  • 47

0 Answers0