GS, GN Format Descriptor

dannycat
Total Points:
2,325
Status Points:
1,825
Brown Belt
November 21, 2008 4:30 AM PST
Rate
 
#3 Reply to #2

As Tim hints, adding 1P (or 2P or whatever) before the G edit descriptor gives you control of the number of digits to the left of the radix point.  There is no S or N form of G.  You will want to make sure that you reset to 0P before using any F edit descriptors.

Thank Steve, but using the P edit descriptor with G does not do what I requested. I tried it 1PG13.5 for 55.0 example gives a formatted string of 55.00000E+00 not 55.00000. I can get round by coding but the reason for this post was primarily to suggest that the GN and GS format descriptors would be nice to have as part of the language.



Intel Software Network Forums Statistics

8292 users have contributed to 31240 threads and 99118 posts to date.
In the past 24 hours, we have 11 new thread(s) 11 new posts(s), and 20 new user(s).

In the past 3 days, the most popular thread for everyone has been huge pages on linux? The most posts were made to Pipeline buffer between stages? The post with the most views is Another example attached (Tr

Please welcome our newest member amirsam7