Fortran output of real number -
have declared variable:
real*4 factor
and factor=2.25
i want output 2.25
tried f3.2
any help?
write (lu09,9315)factor 9315 format (f4.2)
the fortran format f3.2
output numbers .99
, larger won't fit. if mean want 3 digits before decimal, change f6.2
.
the first format number total field width, including decimal , fractional digits.
for 2.25 appear, format width must @ least 4: f4.2
Comments
Post a Comment