Closed thinkeridea closed 3 years ago
Merging #15 (7f71041) into main (70de57e) will increase coverage by
0.04%
. The diff coverage is100.00%
.
@@ Coverage Diff @@
## main #15 +/- ##
==========================================
+ Coverage 90.72% 90.77% +0.04%
==========================================
Files 25 25
Lines 787 791 +4
==========================================
+ Hits 714 718 +4
Misses 51 51
Partials 22 22
Impacted Files | Coverage Δ | |
---|---|---|
exmath/round.go | 100.00% <100.00%> (ø) |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update 70de57e...7f71041. Read the comment docs.
该提交用于修复 #14 精度问题,其原因为
precision < 0
其参与计算的浮点数比较小,导致最终运算结果精度得不到保证分别处理
precision = 0
、precision <0
、precision > 0
的情况,以保证精准度为核心目标。新实现相较于旧方案性能略有下降: