MathGroup Archive 2006

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

Search the Archive

Re: Displaying decimals

  • To: mathgroup at smc.vnet.net
  • Subject: [mg63508] Re: Displaying decimals
  • From: Bill Rowe <readnewsciv at earthlink.net>
  • Date: Tue, 3 Jan 2006 01:25:57 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

On 1/2/06 at 5:49 AM, lrebanks at netvigator.com (Lea Rebanks) wrote:

>Given the enclosed function, I can not make Mathematica v5.1
>display greater than 3 decimals. Please help.

>slope[x_]:=160.245051009838+0.05888359189242*x

>EG. slope[50] = 163.189

>I don't know how or why this is happening.  I have tried N[expr,20]
>to no avail.

By default, Mathematica displays 6 digits. Generally, you won't want to see all of the digits Mathematica uses. But when you do the simplest method to see all digits would be to use FullForm, i.e.,

In[2]:= slope[50]//FullForm

Out[2]//FullForm= 163.189230604459`

or InputForm

In[3]:=slope[50]//InputForm

Out[3]//InputForm= 163.189230604459
--
To reply via email subtract one hundred and four


  • Prev by Date: Re: Displaying decimals
  • Next by Date: Re: Using a palette to speed typesetting
  • Previous by thread: Re: Displaying decimals
  • Next by thread: Re: Displaying decimals