MathGroup Archive 2006

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

Search the Archive

Re: Displaying decimals

  • To: mathgroup at smc.vnet.net
  • Subject: [mg63498] Re: [mg63476] Displaying decimals
  • From: Pratik Desai <pdesai1 at umbc.edu>
  • Date: Tue, 3 Jan 2006 01:25:05 -0500 (EST)
  • References: <200601021049.FAA01344@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.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.
> 
>Many thanks for your attention.
> 
>Lea Rebanks.
>
>  
>
Using SetPrecision perhaps?

Clear[slope, x]
slope[x_] := SetPrecision[160.245051009838 + 0.05888359189242*x, 20]


  • Prev by Date: Re: List Manipulation
  • Next by Date: Re: Unknown Sum of Series
  • Previous by thread: Displaying decimals
  • Next by thread: Re: Displaying decimals