MathGroup Archive 1996

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: how to read real numbers in 1.0000e+00 notation


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] ====


  • Prev by Date: Re: how to read real numbers in 1.0000e+00 notation
  • Next by Date: athenaps PS interpreter for NeXTStep/Intel Mma 2.2
  • Previous by thread: Re: how to read real numbers in 1.0000e+00 notation
  • Next by thread: Re: how to read real numbers in 1.0000e+00 notation