MathGroup Archive 2009

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

Search the Archive

Re: beauty or accuracy

  • To: mathgroup at
  • Subject: [mg103882] Re: beauty or accuracy
  • From: Bill Rowe <readnews at>
  • Date: Sat, 10 Oct 2009 07:10:18 -0400 (EDT)

On 10/9/09 at 7:18 AM, at (Li Zhengji) wrote:

>Hi all,
>42500 - 1907.25 = 40592.8

>I do believe that it is because Mathematica "thinks" it's *better*
>to limit the result to six digits, so 0.75 is rounded to 0.8.

>But, don't you think that the result is a little strange, or

Not at all. By default Mathematica *displays* machine precision
numbers as being only 6 digits. But the actual value used by
Mathematica has more digits. That is

In[1]:= x = 42500 - 1907.25

Out[1]= 40592.8

In[2]:= RealDigits[x]

Out[2]= {{4,0,5,9,2,7,5,0,0,0,0,0,0,0,0,0},5}

  • Prev by Date: Re: beauty or accuracy
  • Next by Date: Convert Graphics3D to Graphics2D. Is it possible?
  • Previous by thread: Re: beauty or accuracy
  • Next by thread: Plot with axis with the same scaling factor