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
  • 730,956
  • 141
  • 904
  • 1,278
Huzo
  • 1,652
  • 1
  • 21
  • 52

0 Answers0