MathGroup Archive 2003

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

Search the Archive

Re: scientific mode for powers

  • To: mathgroup at smc.vnet.net
  • Subject: [mg43991] Re: scientific mode for powers
  • From: Bill Rowe <readnewscix at mail.earthlink.net>
  • Date: Thu, 16 Oct 2003 04:17:10 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

On 10/15/03 at 4:59 AM, hidding at uni-duesseldorf.de (Bernhard Hidding) wrote:


> I I have to change e.g.

> -8.670077820E-06 into -8.670077820*10^-06 and back again.
 
> (Additionally, gnuplot doesn't understand 10^-06 but needs 10**-06)

> Does anyone know how to convert from scientific mode to "10^xx"-notation
> automatically?

Does

In[1]:=
x=-8.670077820*10^-06;
StringReplace[ToString@(x//CForm),{"e"->"*10**"}]

Out[2]=
-8.67007782*10**-6

do what you want?
--
To reply via email subtract one hundred and nine


  • Prev by Date: Re: Get rounds values in alist
  • Next by Date: Re: Illumination or obfuscation?
  • Previous by thread: scientific mode for powers
  • Next by thread: Re: scientific mode for powers