- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have a series of extremely small numbers in my simulation of order 5E-101 that I need to write to a file. I have noticed that no matter what format I use, the symbol 'E' is missing from the print out for three digit exponents, e.g., 0.12340554e-101 prints as 0.12340554-101. I have an old version of microsoft powerstation with which I still get the right printout. Is this a bug or do I need to set some flags to correct this? I even tried quad precision and it did not help.
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This is required by the Fortran standard when the format has only 2 digits specified in the E format (2 is default). Use a format such as E15.7E3.

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