I need a format statement that will effectively left justify an integer of an unknown length. In other words, it will print the minimum number of characters required. Right now if I execute:
i=1
write(6,'(a2,i)') 'i=',i
i=12
write(6,'(a2,i)') 'i=',i
I get the following:
i= 1
i=...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.