Sunday, August 7, 2011

In FORTRAN-95, how do I left-justify integers in output?

I have a Lahey F95 compiler. I have some integer variables that are either 1 or 2 integers long. When I print them, how do I left-justify the output? For example, in one case the number might be 2, in another it's 12. I want to print the 2 to file as 2x, where x is a blank space. The default is to print it as x2. Thanks.

No comments:

Post a Comment