Jun 23, 2004 #1 sagn Programmer Jun 7, 2001 166 US Hi, Sorry for the elementary question but... How can I convert an integer, such as 15, to a string '15'. I am using compaq Visual Fortran. Thanks
Hi, Sorry for the elementary question but... How can I convert an integer, such as 15, to a string '15'. I am using compaq Visual Fortran. Thanks
Jun 23, 2004 1 #2 CaKiwi Programmer Apr 8, 2001 1,294 US Try character*80 a integer i /15/ write (a,1000) i 1000 format(I2) CaKiwi Upvote 0 Downvote
Jun 23, 2004 1 Thread starter #3 sagn Programmer Jun 7, 2001 166 US I do not think this is what I want.. As what you suggests does is not give me the 'string' version of the integer (integer 1 -> string '1')but the symbol associated with the integer. 1 gives me a little heart. That is unless I have done something wrong here... Upvote 0 Downvote
I do not think this is what I want.. As what you suggests does is not give me the 'string' version of the integer (integer 1 -> string '1')but the symbol associated with the integer. 1 gives me a little heart. That is unless I have done something wrong here...
Jun 23, 2004 #4 CaKiwi Programmer Apr 8, 2001 1,294 US Ok, try character*80 a write (a,1000) 15 1000 format(I2) CaKiwi Upvote 0 Downvote
Jun 24, 2004 Thread starter #5 sagn Programmer Jun 7, 2001 166 US AhHa! OK I understan how to do what I want Thanks a lot. Upvote 0 Downvote