Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #3549 > unrolled thread

Re: Bug 1+4/10

Started byBill Rowe <readnews@sbcglobal.net>
First post2011-07-07 11:43 +0000
Last post2011-07-07 11:43 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Re: Bug  1+4/10 Bill Rowe <readnews@sbcglobal.net> - 2011-07-07 11:43 +0000

#3549 — Re: Bug 1+4/10

FromBill Rowe <readnews@sbcglobal.net>
Date2011-07-07 11:43 +0000
SubjectRe: Bug 1+4/10
Message-ID<iv4645$f93$1@smc.vnet.net>
On 7/6/11 at 5:40 AM, slawek@host.pl (slawek) wrote:

>Let check

>In[1]:= 1.4 == 1 + 4/10 Out[1]= True

>In[2]:= a = SetPrecision[1.4, 30] Out[2]=
>1.39999999999999991118215802999

>In[3]:= b = SetPrecision[1 + 4/10, 30] Out[3]=
>1.40000000000000000000000000000

>No comment is needed.

The question is why do you think this is a bug? In one case, you
are starting with a machine precsion number and increasing the
precision, something that really isn't wise. In the other case
you start with an exact value and reduce the precision. Why
would you expect the same result?

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web