Group: comp.lang.fortran · Group Profile · Search for Ss30 in comp.lang.fortran
Author: John Harper
Date: Jul 18, 2007 16:43
... i=30 write(num,*)i ast='SS'//trim(num) ... I need the output as SS30 but i am getting SS 30 Richard's solution works, and so does write(num,'(I0)')i ast='SS... has 3 blanks there to start with and is padded with 3 more. The result is that ast is 'SS30 ' with 6 blanks after the 0 . -- John Harper, School of Mathematics, Statistics and Computer Science, Victoria...
|