Reading Numbers
- To: mathgroup at smc.vnet.net
- Subject: [mg5225] Reading Numbers
- From: cserrat at bcn.servicom.es
- Date: Fri, 15 Nov 1996 03:22:42 -0500
- Sender: owner-wri-mathgroup at wolfram.com
Dear friends,
I have a problem in reading files with Mathematica:
I should read files containing columns of numbers.
These numbers, generated by a Fortran based calculation, can have either the
form .078945E+01 (where I do not find any problem) or the form .783482-150,
where the function ReadList read two numbers: .783482, and -150, and here is
my problem.
I use:
ReadList["file",{Real,Real}]
I do many calculations, getting results in both forms, and I should not
change the argument of ReadList every time, depending on the form of the result.
Do you know how I could manage to read .783482-150 as a whole number (namely
.783482E-150)?
Thank you.
Carles S.
****************************************************************************
Carles Serrat i Jurado Tel: (34)-(3)-7398286
Departament de Fisica i E.N. (34)-(3)-8833267
Universitat Politecnica de Catalunya Fax: (34)-(3)-7398101
Colom 11, 08222-Terrassa email: serrat at fen.upc.es
SPAIN cserrat at bcn.servicom.es
****************************************************************************