From: utzoo!decvax!cca!smk@Mitre-Bedford@sri-unix Newsgroups: net.unix-wizards Title: bug in f77 reading complex numbers Article-I.D.: sri-unix.4322 Posted: Tue Nov 23 00:43:49 1982 Received: Wed Nov 24 09:03:22 1982 Date: Sat Nov 20 21:03:19 1982 Our (4.1bsd) f77 programs that read in complex numbers from the terminal skip every other number. The simple program: program disaster complex a,b read (5,*) a write (6,*) a read (5,*) b write (6,*) b end gives an end of file error for the input: ( 1.20000005, 9.29999995) ( 2.20000005, 3.29999995) and gives the output: ( 1.20000005, 9.29999995) ( 2.20000005, 3.29999995) for the input: ( 1.20000005, 9.29999995) ( 6.20000005, 2.29999995) ( 2.20000005, 3.29999995) Does anyone have a fix or an explanation for this? BTW -- the same response occurs if the numbers are not separated by newlines. --steve