20
0

float format

This commit is contained in:
yezi 2016-08-12 11:31:13 +08:00
parent f4e2c3fa58
commit 3f54900d96

2
col.go
View File

@ -146,7 +146,7 @@ type NumberCol struct {
}
func (c *NumberCol) String(wb *WorkBook) []string {
return []string{fmt.Sprintf("%f", c.Float)}
return []string{strconv.FormatFloat(c.Float, 'f', -1, 64)}
}
type FormulaCol struct {