Re: how to read real numbers in 1.0000e+00 notation
- To: mathgroup at smc.vnet.net
- Subject: [mg4111] Re: how to read real numbers in 1.0000e+00 notation
- From: earhart at athena.mit.edu (Elizabeth J Earhart)
- Date: Wed, 5 Jun 1996 01:37:07 -0400
- Organization: Massachvsetts Institvte of Technology
- Sender: owner-wri-mathgroup at wolfram.com
In article <4ojegb$78s at dragonfly.wolfram.com>, Fedor B. Trintchouk <fedort at elmo.Princeton.EDU> wrote: > >I have to read into mathematica ASCII data files containing floating >point numbers in the notation >that uses the character "e" to separate mantissa and exponent. Is there a >mathematica function that converts this into mathematica's proper >representation, or do I have to use sed or something similar to >replace e's by something like "*10^" ? > Read[<channel>,Number] will properly read numbers in this format. You may need to mess around with the WordSeparators and RecordSeparators options (e.g. if your file is comma-delimited). -Elizabeth Earhart ==== [MESSAGE SEPARATOR] ====