[Date Index] [Thread Index] [Author Index]
Re: Bug 1+4/10
On 7/6/11 at 5:40 AM, slawek at host.pl (slawek) wrote: >Let check >In:= 1.4 == 1 + 4/10 Out= True >In:= a = SetPrecision[1.4, 30] Out= >1.39999999999999991118215802999 >In:= b = SetPrecision[1 + 4/10, 30] Out= >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?