Re: accuracy problem in calculation

2012-11-08 Thread Grant Edwards
On 2012-11-08, Chris Angelico wrote: > On Fri, Nov 9, 2012 at 4:05 AM, Debashish Saha wrote: >> (15+1.00067968)-(15+1.00067961) >> Out[102]: 2.384185791015625e-07 >> >> 1.00067968-(1.00067961) >> Out[103]: 7.1866624e-08 >> >> above i am showing the two different results,t

Re: accuracy problem in calculation

2012-11-08 Thread Dave Angel
On 11/08/2012 12:05 PM, Debashish Saha wrote: > (15+1.00067968)-(15+1.00067961) > Out[102]: 2.384185791015625e-07 > > 1.00067968-(1.00067961) > Out[103]: 7.1866624e-08 > > above i am showing the two different results,though the two outputs > should be same if we do it in cop

Re: accuracy problem in calculation

2012-11-08 Thread Chris Angelico
On Fri, Nov 9, 2012 at 4:05 AM, Debashish Saha wrote: > (15+1.00067968)-(15+1.00067961) > Out[102]: 2.384185791015625e-07 > > 1.00067968-(1.00067961) > Out[103]: 7.1866624e-08 > > above i am showing the two different results,though the two outputs > should be same if we do