|
-
November 23rd, 2008, 11:36 AM
#1
Changing the exponent size
Hi all
I am trying to write a bunch of exponential numbers to a file. I can easily change the overall size using setw(x) and setprecision(x) to set the precision. However what I want to do is define how large the exponent is. For example, in my code it outputs an exponential number as 1.2334e+030 - what I want is to output this number as 1.2334e+30. Does anyone have any suggestions?
thanks
Robbie
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|