From 3f54900d96027c385808d1f06412e5a0ac7583a3 Mon Sep 17 00:00:00 2001 From: yezi Date: Fri, 12 Aug 2016 11:31:13 +0800 Subject: [PATCH] float format --- col.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/col.go b/col.go index 1d05051..826c540 100644 --- a/col.go +++ b/col.go @@ -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 {