From 9c730aae4da689a3a49cfe6d46c3141fcfb5c447 Mon Sep 17 00:00:00 2001 From: hoteas Date: Wed, 15 Nov 2017 10:09:20 +0000 Subject: [PATCH] --- objtoobj.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/objtoobj.go b/objtoobj.go index 1753924..2f8e32a 100644 --- a/objtoobj.go +++ b/objtoobj.go @@ -129,6 +129,7 @@ func ObjToFloat64(obj interface{}, e ...*Error) float64 { if len(e) != 0 { e[0].SetError(err) } + return v } @@ -238,7 +239,7 @@ func ObjToStr(obj interface{}) string { case string: str = obj.(string) case float64: - str = strconv.FormatFloat(obj.(float64), 'f', 6, 64) + str = strconv.FormatFloat(obj.(float64), 'f', -1, 64) default: strbte, err := json.Marshal(obj) if err == nil {