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.

How about

read(1,*) number ?

.



Relevant Pages