Re: number representation
- To: mathgroup at smc.vnet.net
- Subject: [mg108548] Re: number representation
- From: dh <dh at metrohm.com>
- Date: Mon, 22 Mar 2010 06:42:01 -0500 (EST)
- References: <ho777v$12d$1@smc.vnet.net>
Hi Benjamin, with some effort you can use NumberForm and all its options to taylor the output as you please. There are also ScientificForm, EnegeneeringForm, PaddedForm.. Daniel On 22.03.2010 08:46, Benjamin Hell wrote: > Hi, > Mathematicas default behavior with representing floating point numbers > seems to be that numbers greater or equal to 10^-5 are shown without and > numbers smaller than 10^-5 are shown with a sort of Scientific notation, > i.e. floatingpointnumber x 10^-n. > So for example the input 0.00001 delivers 0.00001, but the input > 0.000001 delivers the output 1.\[CenterDot]10^-6 . > As I want to use ToString on the InputForm of such a floating point > number and using that string in a chart I want to be able to control > that behaviour. This means I want to control when scientific notation is > used and when not, because this affects the string I get from ToString. > I am sure there are a lot of ways to get where I want to, but at the > moment I am kind of stuck and don't find the right Forms or Parameters > for displaying the number the way I want it to. Hope someone can help me > out once again. > > Thanks in advance, > Benjamin > -- Daniel Huber Metrohm Ltd. Oberdorfstr. 68 CH-9100 Herisau Tel. +41 71 353 8585, Fax +41 71 353 8907 E-Mail:<mailto:dh at metrohm.com> Internet:<http://www.metrohm.com>