Closed xiaoxinmiao closed 1 year ago
去掉判断后, 为负数时, 仍然正确
if precision < 0 { return math.Floor(val*p+0.5) * math.Pow10(-precision) }
去掉判断后, 为负数时, 仍然正确