Re: reading in int and real values



adebayo.alabi@xxxxxxx wrote:
Hi,
I would like to read in the following (mixed) numbers:

1
-7.5353456456
1
-6.5435346666
1
0.029633
-0.1
0.18363636
...

I have tried to read the numbers using the following formats but got
ugly outputs:

FORMAT(F12.4)
AND
FORMAT(E12.6)

Does anyone know hoe to read these numbers accurately?
Regards.

Try F12.0, or a G or list-directed format. The standard has things to say about reading data with decimal point suppressed, in accordance with tradition of 45 years standing. The only use for F12.4 is to supply an implied decimal point at the implied field position, when no decimal point is input. Apparently, that's not what you wanted.
.