more smart round double value
ref and statistic value must be as long;