xapiancore
1.4.21

Round a bounded estimate to an appropriate number of S.F. More...
Go to the source code of this file.
Functions  
template<typename T >  
Xapian::doccount  round_estimate (T lb, T ub, T est) 
Round a bounded estimate to an appropriate number of S.F. More...  
Round a bounded estimate to an appropriate number of S.F.
Definition in file roundestimate.h.

inline 
Round a bounded estimate to an appropriate number of 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.
Definition at line 37 of file roundestimate.h.
References est(), and exp10().
Referenced by Xapian::MSet::get_matches_estimated().