解析了5档价格,简单对了下开盘,收盘,最高,最低 好像没啥问题

This commit is contained in:
钱纯净
2024-10-23 23:44:41 +08:00
parent f00bc3099e
commit 1bdc7ef8e1
2 changed files with 2 additions and 2 deletions

View File

@@ -13,7 +13,7 @@ func (this Price) Float64() float64 {
}
func (this Price) String() string {
return fmt.Sprintf("%.2f 元", this.Float64())
return fmt.Sprintf("%0.2f 元", this.Float64())
}
type PriceLevel struct {