- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I tried to convert my numeric value to character value. I knew in Windows System, I can use the following code to convert numerical variable A to character variable B.
***********
dim A,B
A=200.98
B=CSTR(A)
***********
However in Linux system, CSTR is not defined. Is there a way to convert numeric to character in Fortran Linux?
Thanks for any advice!
Roy
I tried to convert my numeric value to character value. I knew in Windows System, I can use the following code to convert numerical variable A to character variable B.
***********
dim A,B
A=200.98
B=CSTR(A)
***********
However in Linux system, CSTR is not defined. Is there a way to convert numeric to character in Fortran Linux?
Thanks for any advice!
Roy
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Here is a previous forum post on Fortran internal write, which you could look up in lang_for.pdf which comes with ifort. Choose a format appropriate to the range of expected input, perhaps '(f8.0)'. As suggested in the forum posts, the list-directed formatting mentioned in lang_for may not be best for you.
http://softwareforums.intel.com/ids/board/message?board.id=5&message.id=15025
http://softwareforums.intel.com/ids/board/message?board.id=5&message.id=15025

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page