From f164964d25d41d7942254e19fc310a7bfe0ba707 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Brzozowski?= Date: Tue, 29 Dec 2020 00:08:47 +0100 Subject: [PATCH] changing float to string precision --- series/type-float.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/series/type-float.go b/series/type-float.go index a722cbd..2b0d124 100644 --- a/series/type-float.go +++ b/series/type-float.go @@ -74,7 +74,7 @@ func (e floatElement) String() string { if e.IsNA() { return "NaN" } - return fmt.Sprintf("%f", e.e) + return fmt.Sprintf("%g", e.e) } func (e floatElement) Int() (int, error) {