- decimal:增加 `Multiply` 方法

master
李光春 2 years ago
parent 1367678a2b
commit 8ad3716ff2

@ -2,6 +2,7 @@
- mod优化链接
- random增加泛型
- decimal增加 `Multiply` 方法
## v1.0.39 / 2021-12-27

@ -29,6 +29,11 @@ func RoundYString(y string, n int) float64 {
return Round(gostring.ToFloat64(y)/100, n)
}
// Multiply 相乘
func Multiply(y, x float64) float64 {
return Round(y*x, 2)
}
// PddCouponAmount 优惠券金额
func PddCouponAmount(y int64) float64 {
return Round(float64(y)/100, 2)

Loading…
Cancel
Save