Errors with decimal addition in Mathematica 5.0
- To: mathgroup at smc.vnet.net
- Subject: [mg47416] Errors with decimal addition in Mathematica 5.0
- From: yupeng_ at hotmail.com (Peng Yu)
- Date: Sat, 10 Apr 2004 02:01:21 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
In[1]:= 13505.5 - 244.91 Out[1]= 13260.6 However,13505.5 - 244.91 = 13260.59. "N" doesn't help, either. In[25]:= N[13505.50 - 244.91] Out[25]= 13260.6 But the following command gives the correct answer. In[26]:= 505.50 - 244.91 Out[26]= 260.59 How can I get the correct last digit? Thanks!
- Follow-Ups:
- Re: Errors with decimal addition in Mathematica 5.0
- From: Murray Eisenberg <murray@math.umass.edu>
- Re: Errors with decimal addition in Mathematica 5.0