MathGroup Archive 2004

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

Search the Archive

Errors with decimal addition in Mathematica 5.0


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