Re: reading in int and real values
- From: Tim Prince <tprince@xxxxxxxxxxxxxxxxxx>
- Date: Fri, 28 Oct 2005 14:19:11 GMT
adebayo.alabi@xxxxxxx wrote:
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.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.
.
- Follow-Ups:
- Re: reading in int and real values
- From: John Harper
- Re: reading in int and real values
- References:
- reading in int and real values
- From: adebayo . alabi
- reading in int and real values
- Prev by Date: Re: IMPLICIT NONE (F2k8+/-)
- Next by Date: Re: Using pointers in fortran 95
- Previous by thread: Re: reading in int and real values
- Next by thread: Re: reading in int and real values
- Index(es):