- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have a very simple question. WRITE(*, '(1D25.16)') produces the screen output as below
0.1000000000000000-123
because the order has 3 digits. Please somebody tell me how tomake it lookcorrectly:
0.1000000000000000D-123
Thanks a lot )
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
To make more characters available in the exponent field, append the E modifier, e.g.
E25.17E5
E25.17E5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You'll have to use the E edit descriptor (or G) to use the E exponent modifier - this is not available for the D edit descriptor. Don't forget to add to the width. So something like 1PE26.16E3. (16 digits is too much for double precision, probably should be 15, or even 14 with 1P.

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