Files
iotlcm/worker-svr/internal/service/renewchange/helpers.go
T

10 lines
174 B
Go

package renewchange
// roundAmount 四舍五入到分。
func roundAmount(value float64) float64 {
if value < 0 {
return 0
}
return float64(int(value*100+0.5)) / 100
}