halunke86
Programmer
- Jun 10, 2011
- 1
Hello,
I have a problem with real numbers with a variable length: I want to format it that there are no leading spaces. I've read about trim(adjustl()) , but don't know how to integrate it.
Here is the fortran code:
<code>
WRITE(6,15000)(
1 '<distance>',DA(N1),'</distance>',
2 '<fstrength>',EDBA(N1),'</fstrength>',
3 '<tloss>',TL(N1),'</tloss>',N1=NA,100)
15000 FORMAT(A,F7.2,2A,F7.2,2A,F7.2,A,BN)
</code>
thanks for your help
yours sincerly
halunke86
I have a problem with real numbers with a variable length: I want to format it that there are no leading spaces. I've read about trim(adjustl()) , but don't know how to integrate it.
Here is the fortran code:
<code>
WRITE(6,15000)(
1 '<distance>',DA(N1),'</distance>',
2 '<fstrength>',EDBA(N1),'</fstrength>',
3 '<tloss>',TL(N1),'</tloss>',N1=NA,100)
15000 FORMAT(A,F7.2,2A,F7.2,2A,F7.2,A,BN)
</code>
thanks for your help
yours sincerly
halunke86