MathGroup Archive 2013

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

Search the Archive

Re: Precision

  • To: mathgroup at smc.vnet.net
  • Subject: [mg129345] Re: Precision
  • From: "Nasser M. Abbasi" <nma at 12000.org>
  • Date: Mon, 7 Jan 2013 00:35:54 -0500 (EST)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • Delivered-to: l-mathgroup@wolfram.com
  • Delivered-to: mathgroup-newout@smc.vnet.net
  • Delivered-to: mathgroup-newsend@smc.vnet.net
  • References: <kc8k2f$b17$1@smc.vnet.net>
  • Reply-to: nma at 12000.org

On 1/5/2013 1:17 AM, Rob Ryan wrote:
> My frustration is growing. I simply want to add (for example):
> 103971.66+52282.64+2998.27. These are dollars and cents and I'd like to keep the cents.
>But when I input that line, I get 159923. When I input: N[(103971.66+52282.64+2998.27),20]
>I STILL get 159923. What do I do to get 159952.57?

SetOptions[$FrontEndSession, PrintPrecision -> 16]

In[43]:= 103971.66+52282.64+2998.27
Out[43]= 159252.57

--Nasser




  • Prev by Date: Re: PolynomialQuotient slow
  • Next by Date: Re: Precision
  • Previous by thread: Re: Precision
  • Next by thread: Re: Precision