MathGroup Archive 2003

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

Search the Archive

RE: Scientifc notation

  • To: mathgroup at smc.vnet.net
  • Subject: [mg41329] RE: [mg41312] Scientifc notation
  • From: "David Park" <djmp at earthlink.net>
  • Date: Thu, 15 May 2003 03:56:49 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

Guillermo,

data = {1.0, 30.43 10^-3, 3000};

First we have to notice that 3000 is an exact number, and exact numbers are
not displayed in scientific notation. So we will use N on the data.

ScientificForm[data // N, ExponentFunction -> (# - 1 &)]

or

NumberForm[data // N, ExponentFunction -> (# - 1 &)]

Mathematica finds the exponent required to put one digit to the left of the
decimal point. That is fed to the ExponentFunction, which decreases the
exponent by 1, putting two digits to the left of the decimal point.

David Park
djmp at earthlink.net
http://home.earthlink.net/~djmp/

-----Original Message-----
From: J. Guillermo Sanchez [mailto:guillerm at usal.es]
To: mathgroup at smc.vnet.net
Subject: [mg41329] [mg41312] Scientifc notation



Dear friend,
I would like obtein the output in scientific notation with a two
decimals. Here is an example:


data = {1.0, 30.43 10^-3, 3000}

How convert to scientific notation

{1.00 10^0, 3.043 10^1, 1.00 10^-3, 3.00 10^3}




  • Prev by Date: Re: Spirals and arc length
  • Next by Date: Re: Eps export of some characters fails
  • Previous by thread: RE: Scientifc notation
  • Next by thread: Re: Scientifc notation