|
| View previous topic :: View next topic |
| Author |
Message |
Ramin
Joined: 10 Feb 2006 Posts: 1
|
Posted: Fri Feb 10, 2006 8:01 am Post subject: Floating exception (core dumped) |
|
|
Hello everyone:
When I run my case, after the computation is over and it wants to write the output data into a file, something strength happens for very small numbers. For example when the number is 0.8363323E-211, what is written into the file is 0.8363323-211, no matter if you use free format or formatted write commend. It only happens when you have three digits after E. I wonder if you could let me know how I can fix the problem.
Thanks,
Ramin |
|
| Back to top |
|
 |
mkcolg
Joined: 30 Jun 2004 Posts: 5001 Location: The Portland Group Inc.
|
Posted: Fri Feb 10, 2006 10:12 am Post subject: |
|
|
Hi Ramin,
The E edit descriptor by default prints 4 characters in the exponent field. When the exponent reaches 100, the 'E' must be removed to make room for the extra digit. To have the 'E' printed, you need to use the second form of the E descriptor, 'Ew.dEe' where you specify the number of exponent digits to print.
For example, using 'e15.7e3' will allow enough room for the 'E' to print.
Hope this helps,
Mat |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2002 phpBB Group
|