Reading REAL's from file in FORTRAN 77 - odd results
问题 I'm currently messing around in FORTRAN 77 and I've ran into a problem that I can't seem to figure out. I'm trying to read from a file that looks similar to below: 000120 Description(s) here 18 7 10.15 000176 Description(s) here 65 20 56.95 ... The last column in each row is a monetary amount (never greater than 100). I am trying to read the file by using code similar to below integer pid, qty, min_qty real price character*40 descrip open(unit=2, file='inventory.dat', status='old') read(2,