Problem solved
- To: mathgroup at smc.vnet.net
- Subject: [mg38754] Problem solved
- From: "1.156" <rob at piovere.com>
- Date: Wed, 8 Jan 2003 04:13:32 -0500 (EST)
- References: <av94u6$sb9$1@smc.vnet.net> <avbgmg$3h8$1@smc.vnet.net> <avehrh$mff$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Mihajlo Vanevic was kind enough to point out where my system was kaput. He pointed to Cell/DefaultOutputFormatType which was set on to InputForm. I changed it to StandardForm and now my system is (temporarily at least) at peace. No telling how many years ago I screwed that up and only now I noticed it. Many thanks to you all for helping. Rob "1.156" wrote: > Ray and others: thanks for the suggestions but these commands are just repeated > in the output as if my version 4.0 doesn't understand them. > > InputForm[result] gives > 50/5263 > > InputForm[N[result]] gives > 0.009500285008550257 > (no quotes) > > and > NumberForm[N[result], 4] gives > NumberForm[0.009500285008550257, 4] > > Someday I'll update to ver. 4.2 and see if this starts working. > > Thanks again to all who tried to help. > > Rob > > Ray wrote: > > > Try NumberForm[N[result],4] or SetPrecision[result,4]. > > > > 1.156 wrote: > > > I'm getting a numerical output which has about 12 significant digits. I wanted to give a printout to someone and I need only 4 significant digits (otherwise it represents a result to precise). > > > > > > I thought that was what N[] was for so I put out N[result,4]. > > > > > > For some reason I still get 12 digits displayed. I looked through he help material and it says > > > "n must lie between $MinPrecision and $MaxPrecision. $MaxPrecision can be set to Infinity. " > > > I checked and these numbers are 0 and 10^6, respectively. > > > > > > So, I gave up on N[] and tried Ceiling[10000*result]/10000 and damn if I didn't get "6/625" > > > for an answer. > > > > > > I want to display a decimal result with 4 significant digits, can anyone tell me how to do it? > > > > > > Thanks. > > >