Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.math.mathematica

Topic: Precision
Replies: 3   Last Post: Jan 7, 2013 11:05 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Nasser Abbasi

Posts: 5,674
Registered: 2/7/05
Re: Precision
Posted: Jan 7, 2013 12:35 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

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





Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.