use float when sum overflow
Merge pull request #844 from bitwangyaoyao:2.4_integral