I'm just coming to Fortran90 from Python and, honestly, the hardest part so far has been getting used to the formatting codes for writing output. I've run across a formatting problem that I can't seem to google or fiddle my way out of, I have searched this site for an answer but didn't find anything helpful.
I'm doing a calculation and writing the output to file. I'm formatting the results of the calculation with the following code
write(file, ('13ES11.2)') kappa
Some of the values are very small so I end up three digit negative values. So something that should look like this,
10e-100
But instead I get this in my output file,
10-100
Which isn't helpful for me because I have another program that needs to read that file and understand that those numbers are exponents.
I'd appreciate anyone's help on this.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…