best,nakisa
write(unit_number, '(f7.2)') x
where the '2' is what you're after.
HTH
Mike Metcalf
Fortran runtime error: Expected REAL for item 2 in formatted transfer,
got CHARACTER
(f7.2)
best,nakisa
The 7 is the total field width.
Regards,
Mike Metcalf
write(unit_number, '(f3.1, 2x, f5.2, 2x, f5.2)') x, y, z
Louis
Well, by analogy, '(f6.1, 2f7.2)'
Regards,
Mike Metcalf
write(unit_number,"(f6.1,1X,2(f7.2,1X))") a,b,c