Improve calculation accuracy, fix nemomobile Bug 674