Round MSet::get_matches_estimated() to appropriate S.F.
commit834141d90fe48c8de185fb31aea3e3787735cdad
authorOlly Betts <olly@survex.com>
Tue, 10 Jan 2017 05:03:04 +0000 (10 18:03 +1300)
committerOlly Betts <olly@survex.com>
Tue, 10 Jan 2017 05:03:04 +0000 (10 18:03 +1300)
tree9c4dcfc5cf813df92b6c6cb56f875c3b2c5a2882
parent94ee6ce98ad029b669fa97418695b6d1ab02b94a
Round MSet::get_matches_estimated() to appropriate S.F.

The algorithm used looks at the lower and upper bound and where the
estimate sits between them and picks a number of significant figures
which doesn't suggest much more precision than there is, while still
providing a useful estimate.
xapian-core/api/omenquire.cc
xapian-core/tests/api_backend.cc