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


Groups > comp.lang.python > #32962

accuracy problem in calculation

Date 2012-11-08 22:35 +0530
Subject accuracy problem in calculation
From Debashish Saha <silideba@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.3451.1352394347.27098.python-list@python.org> (permalink)

Show all headers | View raw


(1500000000+1.00067968)-(1500000000+1.00067961)
Out[102]: 2.384185791015625e-07

1.00067968-(1.00067961)
Out[103]: 7.000000001866624e-08

above i am showing the two different results,though the two outputs
should be same if we do it in copy(the lass one is acceptable value).
so my question is how to increase the accuracy(windows7(32bit)
,python2.7.2)

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

accuracy problem in calculation Debashish Saha <silideba@gmail.com> - 2012-11-08 22:35 +0530

csiph-web