MathGroup Archive 2006

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

Search the Archive

Re: Displaying decimals

  • To: mathgroup at smc.vnet.net
  • Subject: [mg63491] Re: [mg63476] Displaying decimals
  • From: "Lea Rebanks" <lrebanks at netvigator.com>
  • Date: Tue, 3 Jan 2006 01:24:45 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

Thank you Yehuda,
 
Exactly what I wanted. 
Many thanks
 
Happy New Year,
Lea Rebanks.
 
-----Original Message-----
From: bsyehuda at gmail.com [mailto:bsyehuda at gmail.com] 
To: mathgroup at smc.vnet.net
Subject: [mg63491] Re: [mg63476] Displaying decimals
 
Hi
slope[50] stores more digits then is represented
FullForm[slope[50]]
returns
163.189230604459`
If you want to display more digits you may use NumberForm
NumberForm[slope[50],Infinity]
returns
163.189230604459
look at the help for more advanced options of the NumberForm function
yehuda



On 1/2/06, Lea Rebanks <lrebanks at netvigator.com> 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.

Many thanks for your attention.

Lea Rebanks.
 


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