I just come to Fortran90 from Python, and frankly, the hardest part is still used to formatting codes for writing output. I ran into a formatting problem that I can’t imagine on Google or go out of my way, I searched this site for an answer but didn’t find anything useful.
I do the calculation and write the output to a file. I format the calculation results with the following code
write (file, ('13ES11.2)') kappa
Some of the values are very small, so I end up with three-digit negative values. So, something that should look like this
10e-100
But instead, I get this in my output file,
10-100
This is not useful for me, because I have another program that should read this file and understand that these numbers are indicators.
I would appreciate any help with this.
source share