diff options
author | xuri <xuri.me@gmail.com> | 2019-03-21 14:09:25 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2019-03-21 14:09:25 +0800 |
commit | 70b1a29165867643e961ceef27592349a122ab7c (patch) | |
tree | 0f35760bab29f9966966ab78e6cd5681a16af910 /cell_test.go | |
parent | b2c12d784e94bfb14da800962c769f5a0f6f783e (diff) |
Use bitSize for float32 type numbers conversion, relate PR #361
Diffstat (limited to 'cell_test.go')
-rw-r--r-- | cell_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 |