fix:订单详情
This commit is contained in:
@@ -16,3 +16,9 @@ func CentitoDollar(price int64, remainFloatPoint ...uint) float64 {
|
||||
dollar, _ := strconv.ParseFloat(str, 64)
|
||||
return dollar
|
||||
}
|
||||
|
||||
// 厘转美元
|
||||
func CentitoDollarStr(price int64) string {
|
||||
s := "%.2f"
|
||||
return fmt.Sprintf(s, float64(price)/float64(1000))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user