Perhaps someone who eats Fortran for breakfast can help me.
Is it really the case that there’s no way (in (portable) Fortran) to format a floating point number so that it has as many leading zeros as are necessary to fill the field?
Imagine I wanted to output something like ISO 6709 and have the location of Sheffield displayed as:
In Python (using C’s syntax) this is just
'%+06.2f%+07.2f' % (lat,lon).
Can I really not do this in Fortran? Surely I have just missed something.
which is not what I wanted at all. I (half humourously) tried F06.2,F07.2 but that doesn’t work.
If true, it’s absolutely unforgivable.