Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #13042

Re: Precision

From "Nasser M. Abbasi" <nma@12000.org>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Precision
Date 2013-01-07 05:35 +0000
Message-ID <kcdmqv$lvi$1@smc.vnet.net> (permalink)
References <kc8k2f$b17$1@smc.vnet.net>
Organization Time-Warner Telecom

Show all headers | View raw


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

Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Precision Rob Ryan <tio540s1@gmail.com> - 2013-01-05 07:17 +0000
  Re: Precision "Nasser M. Abbasi" <nma@12000.org> - 2013-01-07 05:35 +0000
  Re: Precision Richard Fateman <fateman@cs.berkeley.edu> - 2013-01-07 05:36 +0000
  Re: Precision Ray Koopman <koopman@sfu.ca> - 2013-01-08 04:05 +0000

csiph-web