MathGroup Archive 2004

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

Search the Archive

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!


  • Prev by Date: Integration of x BesselI[0,x]^3
  • Next by Date: Re: Is there any productive way to use Mathematica + pdfLaTeX?
  • Previous by thread: Re: Integration of x BesselI[0,x]^3
  • Next by thread: Re: Errors with decimal addition in Mathematica 5.0