MathGroup Archive 2008

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

Search the Archive

Re: Displaying Real Numbers

  • To: mathgroup at smc.vnet.net
  • Subject: [mg85346] Re: [mg85338] Displaying Real Numbers
  • From: Carl Woll <carlw at wolfram.com>
  • Date: Thu, 7 Feb 2008 04:40:20 -0500 (EST)
  • References: <200802061135.GAA07023@smc.vnet.net>

Lea Rebanks wrote:

>Hi All,
>
>Here's a really simple question
>
>I have the output.
>
>173845955435493737/50000 
>
>I am trying to display this number as a real number showing decimals.
>But I don't want to see the output as a fraction or scientific 
>notation.
>  
>
You can try using NumberForm with an ExponentFunction of Null&:

In[716]:= NumberForm[N[173845955435493737/50000, 20], Infinity, 
ExponentFunction -> (Null &)]

Out[716]//NumberForm= 3476919108709.8747400

Carl Woll
Wolfram Research

>N[173845955435493737/50000,20]
>3.4769191087098747400=D71012
>
>The number should look something like  =933476919108709.87474=94
>
>
>IntegerPart[173845955435493737/50000]
>3476919108709
>FractionalPart[173845955435493737/50000]//N
>0.87474
>
>Any help or advice gratefully received.
>
>Best Regards - Lea Rebanks...
>
>  
>



  • Prev by Date: Re: MapThread error with NET/Link function
  • Next by Date: Re: Displaying Real Numbers
  • Previous by thread: Displaying Real Numbers
  • Next by thread: Re: Displaying Real Numbers