From 70b1a29165867643e961ceef27592349a122ab7c Mon Sep 17 00:00:00 2001 From: xuri Date: Thu, 21 Mar 2019 14:09:25 +0800 Subject: Use bitSize for float32 type numbers conversion, relate PR #361 --- cell_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cell_test.go') diff --git a/cell_test.go b/cell_test.go index ba326d9..12efc17 100644 --- a/cell_test.go +++ b/cell_test.go @@ -66,7 +66,7 @@ func TestSetCellFloat(t *testing.T) { func ExampleFile_SetCellFloat() { f := NewFile() - var x float64 = 3.14159265 + var x = 3.14159265 f.SetCellFloat("Sheet1", "A1", x, 2, 64) fmt.Println(f.GetCellValue("Sheet1", "A1")) // Output: 3.14 -- cgit v1.2.1