21
0
Fork 0

float format

This commit is contained in:
yezi 2016-08-12 11:31:13 +08:00
parent f4e2c3fa58
commit 3f54900d96
1 changed files with 1 additions and 1 deletions

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 {