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]
- References:
- Displaying decimals
- From: "Lea Rebanks" <lrebanks@netvigator.com>
- Displaying decimals