- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In an article by Dr. Fortran (aka. Steve), the following new capabilites in F95 were described:
Zero width for integer and real editing - F95 added a nifty new feature, the ability to specify a field width of zero for integer output editing (I, B, O, Z descriptors) and real output editing (F descriptor.) If zero is specified, "the processor selects the field width", which typically means that the width is just enough to display the actual significant digits.
The example showed output for an A and I edit descriptor, but none for the F descriptor. Does anyone know how one does this for reals? Do you specify F0, F0.0, or what? I have tried both ways and no luck. I have also checked the help files, but there is no mention of this capability nor is an example provided. I have just found Steve's brief mention that it can be done. This capability would be extremely helpful for output where I can potentially get *********** in some cases.
Tom
Zero width for integer and real editing - F95 added a nifty new feature, the ability to specify a field width of zero for integer output editing (I, B, O, Z descriptors) and real output editing (F descriptor.) If zero is specified, "the processor selects the field width", which typically means that the width is just enough to display the actual significant digits.
The example showed output for an A and I edit descriptor, but none for the F descriptor. Does anyone know how one does this for reals? Do you specify F0, F0.0, or what? I have tried both ways and no luck. I have also checked the help files, but there is no mention of this capability nor is an example provided. I have just found Steve's brief mention that it can be done. This capability would be extremely helpful for output where I can potentially get *********** in some cases.
Tom
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The Good Doctor prescribes F0.n, where n is the number of fraction digits you want. For example, F0.3.
Steve
Steve
![](/skins/images/3CECF0550DB8BF54496C114A1FF06FE9/responsive_peak/images/icon_anonymous_message.png)
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